public class MultiPolygonBuilder extends ShapeBuilder
Modifier and Type | Class and Description |
---|---|
static class |
MultiPolygonBuilder.InternalPolygonBuilder |
ShapeBuilder.CoordinateNode, ShapeBuilder.Edge, ShapeBuilder.GeoShapeType, ShapeBuilder.Orientation
ToXContent.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, wrapdateline
EMPTY_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, toXContent
public 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
IOException
public ShapeBuilder.GeoShapeType type()
ShapeBuilder
type
in class ShapeBuilder
public com.spatial4j.core.shape.Shape build()
ShapeBuilder
build
in class ShapeBuilder
Shape
defined by the builderCopyright © 2009–2016. All rights reserved.