|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.elasticsearch.common.geo.ShapeBuilder.PolygonBuilder
public static class ShapeBuilder.PolygonBuilder
Builder for creating a Shape
instance of a Polygon
Constructor Summary | |
---|---|
ShapeBuilder.PolygonBuilder()
|
Method Summary | |
---|---|
com.spatial4j.core.shape.Shape |
build()
Builds a Shape instance representing the polygon |
ShapeBuilder.PolygonBuilder |
point(double lon,
double lat)
Adds a point to the Polygon |
com.vividsolutions.jts.geom.Polygon |
toPolygon()
Creates the raw Polygon |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ShapeBuilder.PolygonBuilder()
Method Detail |
---|
public ShapeBuilder.PolygonBuilder point(double lon, double lat)
lon
- Longitude of the pointlat
- Latitude of the point
public com.spatial4j.core.shape.Shape build()
Shape
instance representing the polygon
public com.vividsolutions.jts.geom.Polygon toPolygon()
Polygon
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |