NamedWriteable
, Writeable
, ToXContent
, ToXContentObject
public class MultiLineStringBuilder extends ShapeBuilder<org.locationtech.spatial4j.shape.jts.JtsGeometry,MultiLineStringBuilder>
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 |
---|---|
MultiLineStringBuilder() |
|
MultiLineStringBuilder(StreamInput in) |
Read from a stream.
|
Modifier and Type | Method | Description |
---|---|---|
org.locationtech.spatial4j.shape.jts.JtsGeometry |
build() |
Create a new Shape from this builder.
|
protected java.lang.StringBuilder |
contentToWKT() |
|
org.locationtech.jts.geom.Coordinate[][] |
coordinates() |
|
boolean |
equals(java.lang.Object obj) |
|
int |
hashCode() |
|
MultiLineStringBuilder |
linestring(LineStringBuilder line) |
|
int |
numDimensions() |
tracks number of dimensions for this shape
|
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 MultiLineStringBuilder(StreamInput in) throws java.io.IOException
java.io.IOException
public MultiLineStringBuilder()
public void writeTo(StreamOutput out) throws java.io.IOException
Writeable
writeTo
in interface Writeable
writeTo
in class ShapeBuilder<org.locationtech.spatial4j.shape.jts.JtsGeometry,MultiLineStringBuilder>
java.io.IOException
public MultiLineStringBuilder linestring(LineStringBuilder line)
public org.locationtech.jts.geom.Coordinate[][] coordinates()
public GeoShapeType type()
ShapeBuilder
type
in class ShapeBuilder<org.locationtech.spatial4j.shape.jts.JtsGeometry,MultiLineStringBuilder>
protected java.lang.StringBuilder contentToWKT()
contentToWKT
in class ShapeBuilder<org.locationtech.spatial4j.shape.jts.JtsGeometry,MultiLineStringBuilder>
public int numDimensions()
ShapeBuilder
numDimensions
in class ShapeBuilder<org.locationtech.spatial4j.shape.jts.JtsGeometry,MultiLineStringBuilder>
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
java.io.IOException
public org.locationtech.spatial4j.shape.jts.JtsGeometry build()
ShapeBuilder
build
in class ShapeBuilder<org.locationtech.spatial4j.shape.jts.JtsGeometry,MultiLineStringBuilder>
Shape
defined by the builderpublic int hashCode()
hashCode
in class ShapeBuilder<org.locationtech.spatial4j.shape.jts.JtsGeometry,MultiLineStringBuilder>
public boolean equals(java.lang.Object obj)
equals
in class ShapeBuilder<org.locationtech.spatial4j.shape.jts.JtsGeometry,MultiLineStringBuilder>