NamedWriteable, Writeable, ToXContent, ToXContentObjectpublic class LineStringBuilder extends ShapeBuilder<org.locationtech.spatial4j.shape.jts.JtsGeometry,LineStringBuilder>
ShapeBuilder.Edge, ShapeBuilder.OrientationToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsWriteable.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_ZEROEMPTY_PARAMS| Constructor | Description |
|---|---|
LineStringBuilder(java.util.List<org.locationtech.jts.geom.Coordinate> coordinates) |
Construct a new LineString.
|
LineStringBuilder(CoordinatesBuilder coordinates) |
|
LineStringBuilder(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.
|
LineStringBuilder |
close() |
Closes the current lineString by adding the starting point as the end point.
|
int |
numDimensions() |
tracks number of dimensions for this shape
|
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
|
GeoShapeType |
type() |
get the shapes type
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcontentToWKT, coordinate, coordinate, coordinateListToWKT, coordinates, coordinates, coordinates, coordinatesToXcontent, debugEnabled, equals, getWriteableName, hashCode, intersection, intersections, jtsGeometry, parse, readFromStream, shift, toString, toWKT, toXContent, writeCoordinateTo, writeToisFragmentpublic static final GeoShapeType TYPE
public LineStringBuilder(java.util.List<org.locationtech.jts.geom.Coordinate> coordinates)
coordinates - the initial list of coordinatesjava.lang.IllegalArgumentException - if there are less then two coordinates definedpublic LineStringBuilder(CoordinatesBuilder coordinates)
public LineStringBuilder(StreamInput in) throws java.io.IOException
java.io.IOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
java.io.IOExceptionpublic LineStringBuilder close()
public GeoShapeType type()
ShapeBuildertype in class ShapeBuilder<org.locationtech.spatial4j.shape.jts.JtsGeometry,LineStringBuilder>public int numDimensions()
ShapeBuildernumDimensions in class ShapeBuilder<org.locationtech.spatial4j.shape.jts.JtsGeometry,LineStringBuilder>public org.locationtech.spatial4j.shape.jts.JtsGeometry build()
ShapeBuilderbuild in class ShapeBuilder<org.locationtech.spatial4j.shape.jts.JtsGeometry,LineStringBuilder>Shape defined by the builder