NamedWriteable, Writeable, ToXContent, ToXContentObjectpublic class GeometryCollectionBuilder extends ShapeBuilder
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 |
|---|---|
GeometryCollectionBuilder() |
Build and empty GeometryCollectionBuilder.
|
GeometryCollectionBuilder(StreamInput in) |
Read from a stream.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcoordinate, coordinate, coordinateListToWKT, coordinates, coordinates, coordinates, coordinatesToXcontent, debugEnabled, getWriteableName, intersection, intersections, jtsGeometry, parse, readFromStream, shift, toString, toWKT, toXContent, writeCoordinateToisFragmentpublic static final GeoShapeType TYPE
public GeometryCollectionBuilder()
public GeometryCollectionBuilder(StreamInput in) throws java.io.IOException
java.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
WriteablewriteTo in interface WriteablewriteTo in class ShapeBuilderjava.io.IOExceptionpublic GeometryCollectionBuilder shape(ShapeBuilder shape)
public GeometryCollectionBuilder point(PointBuilder point)
public GeometryCollectionBuilder multiPoint(MultiPointBuilder multiPoint)
public GeometryCollectionBuilder line(LineStringBuilder line)
public GeometryCollectionBuilder multiLine(MultiLineStringBuilder multiLine)
public GeometryCollectionBuilder polygon(PolygonBuilder polygon)
public GeometryCollectionBuilder multiPolygon(MultiPolygonBuilder multiPolygon)
public GeometryCollectionBuilder envelope(EnvelopeBuilder envelope)
public GeometryCollectionBuilder circle(CircleBuilder circle)
public ShapeBuilder getShapeAt(int i)
public int numShapes()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
java.io.IOExceptionprotected java.lang.StringBuilder contentToWKT()
contentToWKT in class ShapeBuilderpublic GeoShapeType type()
ShapeBuildertype in class ShapeBuilderpublic int numDimensions()
ShapeBuildernumDimensions in class ShapeBuilderpublic org.locationtech.spatial4j.shape.Shape build()
ShapeBuilderbuild in class ShapeBuilderShape defined by the builderpublic int hashCode()
hashCode in class ShapeBuilderpublic boolean equals(java.lang.Object obj)
equals in class ShapeBuilder