public class PointBuilder extends ShapeBuilder
ShapeBuilder.CoordinateNode, ShapeBuilder.Edge, ShapeBuilder.GeoShapeType, ShapeBuilder.OrientationToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
static ShapeBuilder.GeoShapeType |
TYPE |
autoIndexJtsGeometry, autoValidateJtsGeometry, DATELINE, FACTORY, FIELD_COORDINATES, FIELD_GEOMETRIES, FIELD_ORIENTATION, FIELD_TYPE, INTERSECTION_ORDER, LOGGER, multiPolygonMayOverlap, orientation, SPATIAL_CONTEXT, wrapdatelineEMPTY_PARAMS| Constructor and Description |
|---|
PointBuilder() |
| Modifier and Type | Method and Description |
|---|---|
com.spatial4j.core.shape.Point |
build()
Create a new Shape from this builder.
|
PointBuilder |
coordinate(com.vividsolutions.jts.geom.Coordinate coordinate) |
double |
latitude() |
double |
longitude() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
ShapeBuilder.GeoShapeType |
type()
get the shapes type
|
coordinate, debugEnabled, intersection, intersections, jtsGeometry, newCircleBuilder, newEnvelope, newEnvelope, newGeometryCollection, newGeometryCollection, newLineString, newMultiLinestring, newMultiPoint, newMultiPolygon, newMultiPolygon, newPoint, newPoint, newPolygon, newPolygon, orientationFromString, parse, parse, shift, toString, toXContentpublic static final ShapeBuilder.GeoShapeType TYPE
public PointBuilder coordinate(com.vividsolutions.jts.geom.Coordinate coordinate)
public double longitude()
public double latitude()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
IOExceptionpublic com.spatial4j.core.shape.Point build()
ShapeBuilderbuild in class ShapeBuilderShape defined by the builderpublic ShapeBuilder.GeoShapeType type()
ShapeBuildertype in class ShapeBuilderCopyright © 2009–2017. All rights reserved.