public class MultiPolygonBuilder extends ShapeBuilder
| Modifier and Type | Class and Description |
|---|---|
static class |
MultiPolygonBuilder.InternalPolygonBuilder |
ShapeBuilder.CoordinateNode, ShapeBuilder.Edge, ShapeBuilder.GeoShapeType, ShapeBuilder.OrientationToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
protected ArrayList<BasePolygonBuilder<?>> |
polygons |
static ShapeBuilder.GeoShapeType |
TYPE |
autoIndexJtsGeometry, autoValidateJtsGeometry, DATELINE, FACTORY, FIELD_COORDINATES, FIELD_GEOMETRIES, FIELD_ORIENTATION, FIELD_TYPE, INTERSECTION_ORDER, LOGGER, multiPolygonMayOverlap, orientation, SPATIAL_CONTEXT, wrapdatelineEMPTY_PARAMS| Constructor and Description |
|---|
MultiPolygonBuilder() |
MultiPolygonBuilder(ShapeBuilder.Orientation orientation) |
| Modifier and Type | Method and Description |
|---|---|
com.spatial4j.core.shape.Shape |
build()
Create a new Shape from this builder.
|
MultiPolygonBuilder.InternalPolygonBuilder |
polygon() |
MultiPolygonBuilder |
polygon(BasePolygonBuilder<?> polygon) |
MultiPolygonBuilder.InternalPolygonBuilder |
polygon(ShapeBuilder.Orientation orientation) |
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, toXContentpublic static final ShapeBuilder.GeoShapeType TYPE
protected final ArrayList<BasePolygonBuilder<?>> polygons
public MultiPolygonBuilder()
public MultiPolygonBuilder(ShapeBuilder.Orientation orientation)
public MultiPolygonBuilder polygon(BasePolygonBuilder<?> polygon)
public MultiPolygonBuilder.InternalPolygonBuilder polygon()
public MultiPolygonBuilder.InternalPolygonBuilder polygon(ShapeBuilder.Orientation orientation)
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
IOExceptionpublic ShapeBuilder.GeoShapeType type()
ShapeBuildertype in class ShapeBuilderpublic com.spatial4j.core.shape.Shape build()
ShapeBuilderbuild in class ShapeBuilderShape defined by the builderCopyright © 2009–2017. All rights reserved.