NamedWriteable, Writeable, ToXContent, ToXContentObjectpublic class PointBuilder extends ShapeBuilder<org.locationtech.spatial4j.shape.Point,PointBuilder>
ShapeBuilder.Edge, ShapeBuilder.OrientationToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsWriteable.Reader<V>, Writeable.Writer<V>| Modifier and Type | Field | Description |
|---|---|---|
static GeoShapeType |
TYPE |
AUTO_INDEX_JTS_GEOMETRY, AUTO_VALIDATE_JTS_GEOMETRY, coordinates, DATELINE, FACTORY, INTERSECTION_ORDER, LOGGER, MULTI_POLYGON_MAY_OVERLAP, SPATIAL_CONTEXT, wrapdateline, ZERO_ZEROEMPTY_PARAMS| Constructor | Description |
|---|---|
PointBuilder() |
Create a point at [0.0,0.0]
|
PointBuilder(double lon,
double lat) |
|
PointBuilder(StreamInput in) |
| Modifier and Type | Method | Description |
|---|---|---|
org.locationtech.spatial4j.shape.Point |
build() |
Create a new Shape from this builder.
|
PointBuilder |
coordinate(org.locationtech.jts.geom.Coordinate coordinate) |
Add a new coordinate to the collection
|
double |
latitude() |
|
double |
longitude() |
|
int |
numDimensions() |
tracks number of dimensions for this shape
|
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
|
GeoShapeType |
type() |
get the shapes type
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcontentToWKT, coordinate, coordinateListToWKT, coordinates, coordinates, coordinates, coordinatesToXcontent, debugEnabled, equals, getWriteableName, hashCode, intersection, intersections, jtsGeometry, parse, readFromStream, shift, toString, toWKT, toXContent, writeCoordinateTo, writeToisFragmentpublic static final GeoShapeType TYPE
public PointBuilder()
public PointBuilder(double lon,
double lat)
public PointBuilder(StreamInput in) throws java.io.IOException
java.io.IOExceptionpublic PointBuilder coordinate(org.locationtech.jts.geom.Coordinate coordinate)
ShapeBuildercoordinate in class ShapeBuilder<org.locationtech.spatial4j.shape.Point,PointBuilder>coordinate - coordinate of the pointpublic double longitude()
public double latitude()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
java.io.IOExceptionpublic org.locationtech.spatial4j.shape.Point build()
ShapeBuilderbuild in class ShapeBuilder<org.locationtech.spatial4j.shape.Point,PointBuilder>Shape defined by the builderpublic GeoShapeType type()
ShapeBuildertype in class ShapeBuilder<org.locationtech.spatial4j.shape.Point,PointBuilder>public int numDimensions()
ShapeBuildernumDimensions in class ShapeBuilder<org.locationtech.spatial4j.shape.Point,PointBuilder>