public class LineStringBuilder extends CoordinateCollection<LineStringBuilder>
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 |
coordinatesAUTO_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 |
|---|
LineStringBuilder(CoordinatesBuilder coordinates) |
LineStringBuilder(java.util.List<com.vividsolutions.jts.geom.Coordinate> coordinates)
Construct a new LineString.
|
LineStringBuilder(StreamInput in)
Read from a stream.
|
| Modifier and Type | Method and Description |
|---|---|
org.locationtech.spatial4j.shape.Shape |
build()
Create a new Shape from this builder.
|
LineStringBuilder |
close()
Closes the current lineString by adding the starting point as the end point.
|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
ShapeBuilder.GeoShapeType |
type()
get the shapes type
|
coordinate, coordinate, coordinates, coordinates, coordinates, coordinatesToXcontent, writeTodebugEnabled, 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 LineStringBuilder(java.util.List<com.vividsolutions.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 ShapeBuilder.GeoShapeType type()
ShapeBuildertype in class ShapeBuilderpublic org.locationtech.spatial4j.shape.Shape build()
ShapeBuilderbuild in class ShapeBuilderShape defined by the builderpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object