public abstract class BaseLineStringBuilder<E extends BaseLineStringBuilder<E>> extends PointCollection<E>
ShapeBuilder.CoordinateNode, ShapeBuilder.Edge, ShapeBuilder.GeoShapeType, ShapeBuilder.Orientation
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
points, translated
autoIndexJtsGeometry, autoValidateJtsGeometry, DATELINE, FACTORY, FIELD_COORDINATES, FIELD_GEOMETRIES, FIELD_ORIENTATION, FIELD_TYPE, INTERSECTION_ORDER, LOGGER, multiPolygonMayOverlap, orientation, SPATIAL_CONTEXT, wrapdateline
EMPTY_PARAMS
Modifier | Constructor and Description |
---|---|
protected |
BaseLineStringBuilder() |
protected |
BaseLineStringBuilder(ArrayList<com.vividsolutions.jts.geom.Coordinate> points) |
Modifier and Type | Method and Description |
---|---|
com.spatial4j.core.shape.Shape |
build()
Create a new Shape from this builder.
|
protected static com.vividsolutions.jts.geom.Coordinate[][] |
decompose(double dateline,
com.vividsolutions.jts.geom.Coordinate[] coordinates)
Decompose a linestring given as array of coordinates at a vertical line.
|
protected static ArrayList<com.vividsolutions.jts.geom.LineString> |
decompose(com.vividsolutions.jts.geom.GeometryFactory factory,
com.vividsolutions.jts.geom.Coordinate[] coordinates,
ArrayList<com.vividsolutions.jts.geom.LineString> strings) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
coordinates, coordinatesToXcontent, point, point, points, points
coordinate, debugEnabled, intersection, intersections, jtsGeometry, newCircleBuilder, newEnvelope, newEnvelope, newGeometryCollection, newGeometryCollection, newLineString, newMultiLinestring, newMultiPoint, newMultiPolygon, newMultiPolygon, newPoint, newPoint, newPolygon, newPolygon, orientationFromString, parse, parse, shift, toString, toXContent, type
protected BaseLineStringBuilder()
protected BaseLineStringBuilder(ArrayList<com.vividsolutions.jts.geom.Coordinate> points)
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
IOException
public com.spatial4j.core.shape.Shape build()
ShapeBuilder
build
in class ShapeBuilder
Shape
defined by the builderprotected static ArrayList<com.vividsolutions.jts.geom.LineString> decompose(com.vividsolutions.jts.geom.GeometryFactory factory, com.vividsolutions.jts.geom.Coordinate[] coordinates, ArrayList<com.vividsolutions.jts.geom.LineString> strings)
protected static com.vividsolutions.jts.geom.Coordinate[][] decompose(double dateline, com.vividsolutions.jts.geom.Coordinate[] coordinates)
dateline
- x-axis intercept of the vertical linecoordinates
- coordinates forming the linestringCopyright © 2009–2016. All rights reserved.