|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.elasticsearch.common.geo.ShapeBuilder
public class ShapeBuilder
Utility class for building Shape
instances like Point
,
Rectangle
and Polygons.
Nested Class Summary | |
---|---|
static class |
ShapeBuilder.PolygonBuilder
Builder for creating a Shape instance of a Polygon |
static class |
ShapeBuilder.RectangleBuilder
Builder for creating a Rectangle instance |
Method Summary | |
---|---|
static com.spatial4j.core.shape.Point |
newPoint(double lon,
double lat)
Creates a new Point |
static ShapeBuilder.PolygonBuilder |
newPolygon()
Creates a new ShapeBuilder.PolygonBuilder to build a Polygon |
static ShapeBuilder.RectangleBuilder |
newRectangle()
Creates a new ShapeBuilder.RectangleBuilder to build a Rectangle |
static com.vividsolutions.jts.geom.Geometry |
toJTSGeometry(com.spatial4j.core.shape.Shape shape)
Converts the given Shape into the JTS Geometry representation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static com.spatial4j.core.shape.Point newPoint(double lon, double lat)
Point
lon
- Longitude of pointlat
- Latitude of point
public static ShapeBuilder.RectangleBuilder newRectangle()
ShapeBuilder.RectangleBuilder
to build a Rectangle
public static ShapeBuilder.PolygonBuilder newPolygon()
ShapeBuilder.PolygonBuilder
to build a Polygon
public static com.vividsolutions.jts.geom.Geometry toJTSGeometry(com.spatial4j.core.shape.Shape shape)
Geometry
representation.
If the Shape already uses a Geometry, that is returned.
shape
- Shape to convert
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |