NamedWriteable
, Writeable
, ToXContent
, ToXContentObject
public class EnvelopeBuilder extends ShapeBuilder<org.locationtech.spatial4j.shape.Rectangle,EnvelopeBuilder>
ShapeBuilder.Edge, ShapeBuilder.Orientation
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Writeable.Reader<V>, Writeable.Writer<V>
Modifier and Type | Field | Description |
---|---|---|
static GeoShapeType |
TYPE |
AUTO_INDEX_JTS_GEOMETRY, AUTO_VALIDATE_JTS_GEOMETRY, coordinates, DATELINE, FACTORY, INTERSECTION_ORDER, LOGGER, MULTI_POLYGON_MAY_OVERLAP, SPATIAL_CONTEXT, wrapdateline, ZERO_ZERO
EMPTY_PARAMS
Constructor | 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 | Description |
---|---|---|
com.vividsolutions.jts.geom.Coordinate |
bottomRight() |
|
org.locationtech.spatial4j.shape.Rectangle |
build() |
Create a new Shape from this builder.
|
protected java.lang.StringBuilder |
contentToWKT() |
|
boolean |
equals(java.lang.Object obj) |
|
int |
hashCode() |
|
com.vividsolutions.jts.geom.Coordinate |
topLeft() |
|
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
|
GeoShapeType |
type() |
get the shapes type
|
void |
writeTo(StreamOutput out) |
Write this into the StreamOutput.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
coordinate, coordinate, coordinateListToWKT, coordinates, coordinates, coordinates, coordinatesToXcontent, debugEnabled, getWriteableName, intersection, intersections, jtsGeometry, parse, readFromStream, shift, toString, toWKT, toXContent, writeCoordinateTo
isFragment
public static final 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.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Writeable
writeTo
in interface Writeable
writeTo
in class ShapeBuilder<org.locationtech.spatial4j.shape.Rectangle,EnvelopeBuilder>
java.io.IOException
public com.vividsolutions.jts.geom.Coordinate topLeft()
public com.vividsolutions.jts.geom.Coordinate bottomRight()
protected java.lang.StringBuilder contentToWKT()
contentToWKT
in class ShapeBuilder<org.locationtech.spatial4j.shape.Rectangle,EnvelopeBuilder>
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
java.io.IOException
public org.locationtech.spatial4j.shape.Rectangle build()
ShapeBuilder
build
in class ShapeBuilder<org.locationtech.spatial4j.shape.Rectangle,EnvelopeBuilder>
Shape
defined by the builderpublic GeoShapeType type()
ShapeBuilder
type
in class ShapeBuilder<org.locationtech.spatial4j.shape.Rectangle,EnvelopeBuilder>
public int hashCode()
hashCode
in class ShapeBuilder<org.locationtech.spatial4j.shape.Rectangle,EnvelopeBuilder>
public boolean equals(java.lang.Object obj)
equals
in class ShapeBuilder<org.locationtech.spatial4j.shape.Rectangle,EnvelopeBuilder>