public class EnvelopeBuilder extends ShapeBuilder
ShapeBuilder.CoordinateNode, ShapeBuilder.Edge, ShapeBuilder.GeoShapeType, ShapeBuilder.Orientation
ToXContent.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, wrapdateline
EMPTY_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, toXContent
public 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
IOException
public com.spatial4j.core.shape.Rectangle build()
ShapeBuilder
build
in class ShapeBuilder
Shape
defined by the builderpublic ShapeBuilder.GeoShapeType type()
ShapeBuilder
type
in class ShapeBuilder
Copyright © 2009–2016. All rights reserved.