Package org.apache.lucene.tests.geo
Class EarthDebugger
java.lang.Object
org.apache.lucene.tests.geo.EarthDebugger
Draws shapes on the earth surface and renders using the very cool http://www.webglearth.org.
Just instantiate this class, add the things you want plotted, and call finish()
to get
the resulting HTML that you should save and load with a browser.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCircle
(double centerLat, double centerLon, double radiusMeters, boolean alsoAddBBox) void
addLatLine
(double lat, double minLon, double maxLon) Draws a line a fixed latitude, spanning the min/max longitudevoid
addLonLine
(double minLat, double maxLat, double lon) Draws a line a fixed longitude, spanning the min/max latitudevoid
addPoint
(double lat, double lon) void
addPolygon
(Polygon poly) void
addPolygon
(Polygon poly, String color) void
addRect
(double minLat, double maxLat, double minLon, double maxLon) void
finish()
-
Constructor Details
-
EarthDebugger
public EarthDebugger() -
EarthDebugger
public EarthDebugger(double centerLat, double centerLon, double altitudeMeters)
-
-
Method Details
-
addPolygon
-
addPolygon
-
addRect
public void addRect(double minLat, double maxLat, double minLon, double maxLon) -
addRect
-
addLatLine
public void addLatLine(double lat, double minLon, double maxLon) Draws a line a fixed latitude, spanning the min/max longitude -
addLonLine
public void addLonLine(double minLat, double maxLat, double lon) Draws a line a fixed longitude, spanning the min/max latitude -
addPoint
public void addPoint(double lat, double lon) -
addCircle
public void addCircle(double centerLat, double centerLon, double radiusMeters, boolean alsoAddBBox) -
finish
-