public class EnvelopeBuilder extends ShapeBuilder
ShapeBuilder.CoordinateNode, ShapeBuilder.Edge, ShapeBuilder.GeoShapeType, ShapeBuilder.OrientationWriteable.Reader<V>, Writeable.Writer<V>ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
static ShapeBuilder.GeoShapeType |
TYPE |
AUTO_INDEX_JTS_GEOMETRY, AUTO_VALIDATE_JTS_GEOMETRY, DATELINE, FACTORY, FIELD_COORDINATES, FIELD_GEOMETRIES, FIELD_ORIENTATION, FIELD_TYPE, INTERSECTION_ORDER, LOGGER, MULTI_POLYGON_MAY_OVERLAP, SPATIAL_CONTEXT, wrapdateline, ZERO_ZEROEMPTY_PARAMS| Constructor and Description |
|---|
EnvelopeBuilder(com.vividsolutions.jts.geom.Coordinate topLeft,
com.vividsolutions.jts.geom.Coordinate bottomRight)
Build an envelope from the top left and bottom right coordinates.
|
EnvelopeBuilder(StreamInput in)
Read from a stream.
|
| Modifier and Type | Method and Description |
|---|---|
com.vividsolutions.jts.geom.Coordinate |
bottomRight() |
org.locationtech.spatial4j.shape.Rectangle |
build()
Create a new Shape from this builder.
|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
com.vividsolutions.jts.geom.Coordinate |
topLeft() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
ShapeBuilder.GeoShapeType |
type()
get the shapes type
|
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
debugEnabled, getWriteableName, intersection, intersections, jtsGeometry, parse, parse, readFromStream, shift, toXContent, writeCoordinateTobuildAsBytes, buildAsBytes, toString, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitisFragmentpublic static final ShapeBuilder.GeoShapeType TYPE
public EnvelopeBuilder(com.vividsolutions.jts.geom.Coordinate topLeft,
com.vividsolutions.jts.geom.Coordinate bottomRight)
public EnvelopeBuilder(StreamInput in) throws java.io.IOException
java.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
Writeablejava.io.IOExceptionpublic com.vividsolutions.jts.geom.Coordinate topLeft()
public com.vividsolutions.jts.geom.Coordinate bottomRight()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
java.io.IOExceptionpublic org.locationtech.spatial4j.shape.Rectangle build()
ShapeBuilderbuild in class ShapeBuilderShape defined by the builderpublic ShapeBuilder.GeoShapeType type()
ShapeBuildertype in class ShapeBuilderpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object