public class PointBuilder extends ShapeBuilder
ShapeBuilder.CoordinateNode, ShapeBuilder.Edge, ShapeBuilder.GeoShapeType, ShapeBuilder.Orientation
ToXContent.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, wrapdateline
EMPTY_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, toXContent
public 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
IOException
public com.spatial4j.core.shape.Point build()
ShapeBuilder
build
in class ShapeBuilder
Shape
defined by the builderpublic ShapeBuilder.GeoShapeType type()
ShapeBuilder
type
in class ShapeBuilder
Copyright © 2009–2016. All rights reserved.