public class MultiPolygonBuilder extends ShapeBuilder
ShapeBuilder.CoordinateNode, ShapeBuilder.Edge, ShapeBuilder.GeoShapeType, ShapeBuilder.OrientationWriteable.Reader<V>, Writeable.Writer<V>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, SPATIAL_CONTEXT, wrapdateline, ZERO_ZEROEMPTY_PARAMS| Constructor and Description |
|---|
MultiPolygonBuilder()
Build a MultiPolygonBuilder with RIGHT orientation.
|
MultiPolygonBuilder(ShapeBuilder.Orientation orientation)
Build a MultiPolygonBuilder with an arbitrary orientation.
|
MultiPolygonBuilder(StreamInput in)
Read from a stream.
|
| Modifier and Type | Method and Description |
|---|---|
org.locationtech.spatial4j.shape.Shape |
build()
Create a new Shape from this builder.
|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
ShapeBuilder.Orientation |
orientation() |
MultiPolygonBuilder |
polygon(PolygonBuilder polygon)
Add a shallow copy of the polygon to the multipolygon.
|
java.util.List<PolygonBuilder> |
polygons()
get the list of polygons
|
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
ShapeBuilder.GeoShapeType |
type()
get the shapes type
|
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
debugEnabled, getWriteableName, intersection, intersections, jtsGeometry, parse, parse, readFromStream, shift, toXContent, writeCoordinateTobuildAsBytes, buildAsBytes, toString, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitisFragmentpublic static final ShapeBuilder.GeoShapeType TYPE
public MultiPolygonBuilder()
public MultiPolygonBuilder(ShapeBuilder.Orientation orientation)
public MultiPolygonBuilder(StreamInput in) throws java.io.IOException
java.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
Writeablejava.io.IOExceptionpublic ShapeBuilder.Orientation orientation()
public MultiPolygonBuilder polygon(PolygonBuilder polygon)
MultiPolygonBuilder to the polygon if polygon has different orientation.public java.util.List<PolygonBuilder> polygons()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
java.io.IOExceptionpublic ShapeBuilder.GeoShapeType type()
ShapeBuildertype in class ShapeBuilderpublic org.locationtech.spatial4j.shape.Shape build()
ShapeBuilderbuild in class ShapeBuilderShape defined by the builderpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object