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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCircle(double centerLat, double centerLon, double radiusMeters, boolean alsoAddBBox) voidaddLatLine(double lat, double minLon, double maxLon) Draws a line a fixed latitude, spanning the min/max longitudevoidaddLonLine(double minLat, double maxLat, double lon) Draws a line a fixed longitude, spanning the min/max latitudevoidaddPoint(double lat, double lon) voidaddPolygon(Polygon poly) voidaddPolygon(Polygon poly, String color) voidaddRect(double minLat, double maxLat, double minLon, double maxLon) voidfinish()
-
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
-