public class LineStringDoubleGf extends AbstractLineString implements LineString
LineString.
A LineString consists of a sequence of two or more vertices,
along with all points along the linearly-interpolated curves
(line segments) between each
pair of consecutive vertices.
Consecutive vertices may be equal.
The line segments in the line may intersect each other (in other words,
the linestring may "curl back" in itself and self-intersect.
Linestrings with exactly two identical points are invalid.
A linestring must have either 0 or 2 or more points.
If these conditions are not met, the constructors throw
an IllegalArgumentException
| Constructor and Description |
|---|
LineStringDoubleGf(GeometryFactory geometryFactory) |
LineStringDoubleGf(GeometryFactory geometryFactory,
int axisCount,
double... points) |
LineStringDoubleGf(GeometryFactory geometryFactory,
int axisCount,
int vertexCount,
double... coordinates) |
LineStringDoubleGf(GeometryFactory geometryFactory,
LineString points) |
| Modifier and Type | Method and Description |
|---|---|
LineStringDoubleGf |
clone()
Creates and returns a full copy of this
LineString object. |
protected double[] |
convertCoordinates(GeometryFactory geometryFactory) |
BoundingBox |
getBoundingBox()
Gets an
BoundingBoxDoubleGf containing
the minimum and maximum x and y values in this Geometry. |
double |
getCoordinate(int vertexIndex,
int axisIndex) |
double[] |
getCoordinates() |
GeometryFactory |
getGeometryFactory()
Gets the geometryFactory which contains the context in which this geometry was created.
|
static double[] |
getNewCoordinates(GeometryFactory geometryFactory,
int axisCount,
int vertexCount,
double... coordinates) |
Object |
getUserData()
Gets the user data object for this geometry, if any.
|
int |
getVertexCount()
Returns the count of this
Geometrys vertices. |
boolean |
isEmpty()
Tests whether the set of points covered by this
Geometry is
empty. |
void |
setUserData(Object userData)
A simple scheme for applications to add their own custom data to a Geometry.
|
appendVertex, compareToSameClass, computeBoundingBox, copy, deleteVertex, deleteVertex, distance, doEquals, equals, equalsExact, equalsVertex, equalsVertex, equalsVertex, equalsVertex, equalsVertex, getBoundary, getBoundaryDimension, getCoordinatesList, getDataType, getDimension, getEndPoint, getLength, getM, getMinVertexCount, getPoint, getPoint, getPointWithin, getSegment, getSegmentCount, getStartPoint, getToVertex, getVertex, getX, getY, getZ, hasVertex, insertVertex, intersects, isClockwise, isClosed, isCounterClockwise, isEquivalentClass, isRing, merge, merge, move, moveCoordinates, moveVertex, moveVertex, normalize, orientationIndex, points, prepare, reverse, segments, split, subLine, subLine, subLine, subLine, toClockwise, toCounterClockwise, verticesbuffer, buffer, buffer, checkNotGeometryCollection, compare, compareTo, contains, containsProperly, convert, convert, convexHull, coveredBy, covers, createVertexId, crosses, difference, disjoint, distance, envelopeCovers, envelopesIntersect, equal, equals, equals, equals, equalsExact, equalsNorm, equalsTopo, geometries, getArea, getAxisCount, getCentroid, getClassSortIndex, getCoordinateSystem, getEnvelope, getGeometries, getGeometries, getGeometry, getGeometryComponents, getGeometryCount, getGeometryType, getInteriorPoint, getNonZeroGeometryFactory, getSrid, getVertexIndex, hashCode, hasInvalidXyCoordinates, hasNonEmptyElements, hasNullElements, intersection, intersects, isAnyTargetComponentInTest, isGeometryCollection, isRectangle, isSimple, isValid, isWithinDistance, overlaps, relate, relate, setVertexIndex, symDifference, toString, touches, toWkt, union, union, withinfinalize, getClass, notify, notifyAll, wait, wait, waitdistance, equals, equalsVertex, equalsVertex, equalsVertex, equalsVertex, equalsVertex, getCoordinatesList, getEndPoint, getM, getPoint, getSegmentCount, getStartPoint, getX, getY, getZ, hasVertex, isClockwise, isClosed, isCounterClockwise, isRing, merge, merge, move, moveVertex, normalize, points, prepare, reverse, split, subLine, subLine, subLine, subLineappendVertex, buffer, buffer, buffer, compareTo, compareToSameClass, contains, containsProperly, convert, convert, convexHull, copy, coveredBy, covers, crosses, deleteVertex, difference, disjoint, distance, equal, equals, equals, equals, equalsExact, equalsExact, equalsNorm, equalsTopo, geometries, getArea, getAxisCount, getBoundary, getBoundaryDimension, getCentroid, getClassSortIndex, getCoordinateSystem, getDimension, getEnvelope, getGeometries, getGeometries, getGeometry, getGeometryComponents, getGeometryCount, getGeometryType, getInteriorPoint, getLength, getPoint, getPointWithin, getSegment, getSrid, getToVertex, getVertex, hashCode, hasInvalidXyCoordinates, insertVertex, intersection, intersects, intersects, isRectangle, isSimple, isValid, isWithinDistance, moveVertex, overlaps, relate, relate, segments, symDifference, toClockwise, toCounterClockwise, touches, toWkt, union, union, vertices, withingetDataTypepublic LineStringDoubleGf(GeometryFactory geometryFactory)
public LineStringDoubleGf(GeometryFactory geometryFactory, int axisCount, double... points)
public LineStringDoubleGf(GeometryFactory geometryFactory, int axisCount, int vertexCount, double... coordinates)
public LineStringDoubleGf(GeometryFactory geometryFactory, LineString points)
public static double[] getNewCoordinates(GeometryFactory geometryFactory, int axisCount, int vertexCount, double... coordinates)
public LineStringDoubleGf clone()
LineString object.
(including all coordinates contained by it).clone in interface Geometryclone in interface LineStringclone in class AbstractLineStringprotected double[] convertCoordinates(GeometryFactory geometryFactory)
convertCoordinates in class AbstractLineStringpublic BoundingBox getBoundingBox()
AbstractGeometryBoundingBoxDoubleGf containing
the minimum and maximum x and y values in this Geometry.
If the geometry is empty, an empty BoundingBoxDoubleGf
is returned.
The returned object is a copy of the one maintained internally, to avoid aliasing issues. For best performance, clients which access this boundingBox frequently should cache the return value.
getBoundingBox in interface GeometrygetBoundingBox in class AbstractGeometryGeometry.public double getCoordinate(int vertexIndex,
int axisIndex)
getCoordinate in interface LineStringpublic double[] getCoordinates()
getCoordinates in interface LineStringgetCoordinates in class AbstractLineStringpublic GeometryFactory getGeometryFactory()
GeometrygetGeometryFactory in interface GeometrygetGeometryFactory in class AbstractGeometrypublic Object getUserData()
getUserData in interface GeometrygetUserData in class AbstractGeometrynull if none setpublic int getVertexCount()
GeometryGeometrys vertices. The Geometry
s contained by composite Geometrys must be
Geometry's; that is, they must implement getNumPointsgetVertexCount in interface GeometryGeometrypublic boolean isEmpty()
AbstractGeometryGeometry is
empty.isEmpty in interface GeometryisEmpty in class AbstractGeometrytrue if this Geometry does not cover any pointspublic void setUserData(Object userData)
Note that user data objects are not present in geometries created by construction methods.
setUserData in interface GeometrysetUserData in class AbstractGeometryuserData - an object, the semantics for which are defined by the
application using this GeometryCopyright © 2015 Revolution Systems Inc.. All rights reserved.