public class EnvelopeBuilder extends ShapeBuilder
ShapeBuilder.CoordinateNode, ShapeBuilder.Edge, ShapeBuilder.GeoShapeType, ShapeBuilder.OrientationToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
protected com.vividsolutions.jts.geom.Coordinate |
bottomRight |
protected com.vividsolutions.jts.geom.Coordinate |
topLeft |
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 |
|---|
EnvelopeBuilder() |
EnvelopeBuilder(ShapeBuilder.Orientation orientation) |
| Modifier and Type | Method and Description |
|---|---|
EnvelopeBuilder |
bottomRight(com.vividsolutions.jts.geom.Coordinate bottomRight) |
EnvelopeBuilder |
bottomRight(double longitude,
double latitude) |
com.spatial4j.core.shape.Rectangle |
build()
Create a new Shape from this builder.
|
EnvelopeBuilder |
topLeft(com.vividsolutions.jts.geom.Coordinate topLeft) |
EnvelopeBuilder |
topLeft(double longitude,
double latitude) |
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 com.vividsolutions.jts.geom.Coordinate topLeft
protected com.vividsolutions.jts.geom.Coordinate bottomRight
public EnvelopeBuilder()
public EnvelopeBuilder(ShapeBuilder.Orientation orientation)
public EnvelopeBuilder topLeft(com.vividsolutions.jts.geom.Coordinate topLeft)
public EnvelopeBuilder topLeft(double longitude, double latitude)
public EnvelopeBuilder bottomRight(com.vividsolutions.jts.geom.Coordinate bottomRight)
public EnvelopeBuilder bottomRight(double longitude, double latitude)
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
IOExceptionpublic com.spatial4j.core.shape.Rectangle build()
ShapeBuilderbuild in class ShapeBuilderShape defined by the builderpublic ShapeBuilder.GeoShapeType type()
ShapeBuildertype in class ShapeBuilderCopyright © 2009–2017. All rights reserved.