NamedWriteable
, Writeable
, ToXContent
, ToXContentObject
public class MultiPointBuilder extends ShapeBuilder<XShapeCollection<org.locationtech.spatial4j.shape.Point>,MultiPointBuilder>
ShapeBuilder.Edge, ShapeBuilder.Orientation
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Writeable.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_ZERO
EMPTY_PARAMS
Constructor | Description |
---|---|
MultiPointBuilder(java.util.List<org.locationtech.jts.geom.Coordinate> coordinates) |
Create a new
MultiPointBuilder . |
MultiPointBuilder(StreamInput in) |
Read from a stream.
|
Modifier and Type | Method | Description |
---|---|---|
XShapeCollection<org.locationtech.spatial4j.shape.Point> |
build() |
Create a new Shape from this builder.
|
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, wait
contentToWKT, coordinate, coordinate, coordinateListToWKT, coordinates, coordinates, coordinates, coordinatesToXcontent, debugEnabled, equals, getWriteableName, hashCode, intersection, intersections, jtsGeometry, parse, readFromStream, shift, toString, toWKT, toXContent, writeCoordinateTo, writeTo
isFragment
public static final GeoShapeType TYPE
public MultiPointBuilder(java.util.List<org.locationtech.jts.geom.Coordinate> coordinates)
MultiPointBuilder
.coordinates
- needs at least two coordinates to be valid, otherwise will throw an exceptionpublic MultiPointBuilder(StreamInput in) throws java.io.IOException
java.io.IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
java.io.IOException
public XShapeCollection<org.locationtech.spatial4j.shape.Point> build()
ShapeBuilder
build
in class ShapeBuilder<XShapeCollection<org.locationtech.spatial4j.shape.Point>,MultiPointBuilder>
Shape
defined by the builderpublic GeoShapeType type()
ShapeBuilder
type
in class ShapeBuilder<XShapeCollection<org.locationtech.spatial4j.shape.Point>,MultiPointBuilder>
public int numDimensions()
ShapeBuilder
numDimensions
in class ShapeBuilder<XShapeCollection<org.locationtech.spatial4j.shape.Point>,MultiPointBuilder>