public class GeometryCollectionBuilder extends ShapeBuilder
ShapeBuilder.CoordinateNode, ShapeBuilder.Edge, ShapeBuilder.GeoShapeType, ShapeBuilder.OrientationToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
protected ArrayList<ShapeBuilder> |
shapes |
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 |
|---|
GeometryCollectionBuilder() |
GeometryCollectionBuilder(ShapeBuilder.Orientation orientation) |
| Modifier and Type | Method and Description |
|---|---|
com.spatial4j.core.shape.Shape |
build()
Create a new Shape from this builder.
|
GeometryCollectionBuilder |
circle(CircleBuilder circle) |
GeometryCollectionBuilder |
envelope(EnvelopeBuilder envelope) |
ShapeBuilder |
getShapeAt(int i) |
GeometryCollectionBuilder |
line(BaseLineStringBuilder<?> line) |
GeometryCollectionBuilder |
multiLine(MultiLineStringBuilder multiLine) |
GeometryCollectionBuilder |
multiPoint(MultiPointBuilder multiPoint) |
GeometryCollectionBuilder |
multiPolygon(MultiPolygonBuilder multiPolygon) |
int |
numShapes() |
GeometryCollectionBuilder |
point(PointBuilder point) |
GeometryCollectionBuilder |
polygon(BasePolygonBuilder<?> polygon) |
GeometryCollectionBuilder |
shape(ShapeBuilder shape) |
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<ShapeBuilder> shapes
public GeometryCollectionBuilder()
public GeometryCollectionBuilder(ShapeBuilder.Orientation orientation)
public GeometryCollectionBuilder shape(ShapeBuilder shape)
public GeometryCollectionBuilder point(PointBuilder point)
public GeometryCollectionBuilder multiPoint(MultiPointBuilder multiPoint)
public GeometryCollectionBuilder line(BaseLineStringBuilder<?> line)
public GeometryCollectionBuilder multiLine(MultiLineStringBuilder multiLine)
public GeometryCollectionBuilder polygon(BasePolygonBuilder<?> 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 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.