public class PreparedLineString extends AbstractLineString
Lineal geometries.
Instances of this class are thread-safe.
| Constructor and Description |
|---|
PreparedLineString(LineString line) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
FastSegmentSetIntersectionFinder |
getIntersectionFinder() |
LineString |
getLine() |
int |
getVertexCount()
Returns the count of this
Geometrys vertices. |
boolean |
intersects(Geometry geometry)
Tests whether this geometry intersects the argument geometry.
|
boolean |
isAnyTestPointInTarget(Geometry geometry)
Tests whether any representative point of the test Geometry intersects
the target geometry.
|
boolean |
isEmpty()
Tests whether the set of points covered by this
Geometry is
empty. |
LineString |
prepare() |
appendVertex, clone, compareToSameClass, computeBoundingBox, convertCoordinates, 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, 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, getUserData, getVertexIndex, hashCode, hasInvalidXyCoordinates, hasNonEmptyElements, hasNullElements, intersection, isAnyTargetComponentInTest, isGeometryCollection, isRectangle, isSimple, isValid, isWithinDistance, overlaps, relate, relate, setUserData, setVertexIndex, symDifference, toString, touches, toWkt, union, union, withinfinalize, getClass, notify, notifyAll, wait, wait, waitbuffer, buffer, buffer, compareTo, contains, containsProperly, convert, convert, convexHull, coveredBy, covers, crosses, difference, disjoint, distance, equal, equals, equals, equals, equalsExact, equalsNorm, equalsTopo, geometries, getArea, getAxisCount, getCentroid, getClassSortIndex, getCoordinateSystem, getEnvelope, getGeometries, getGeometries, getGeometry, getGeometryComponents, getGeometryCount, getGeometryType, getInteriorPoint, getSrid, getUserData, hashCode, hasInvalidXyCoordinates, intersection, isRectangle, isSimple, isValid, isWithinDistance, overlaps, relate, relate, setUserData, symDifference, touches, toWkt, union, union, withinpublic PreparedLineString(LineString line)
public 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)
public double[] getCoordinates()
getCoordinates in interface LineStringgetCoordinates in class AbstractLineStringpublic GeometryFactory getGeometryFactory()
GeometrygetGeometryFactory in interface GeometrygetGeometryFactory in class AbstractGeometrypublic FastSegmentSetIntersectionFinder getIntersectionFinder()
public LineString getLine()
public int getVertexCount()
GeometryGeometrys vertices. The Geometry
s contained by composite Geometrys must be
Geometry's; that is, they must implement getNumPointsGeometrypublic boolean intersects(Geometry geometry)
AbstractGeometry
The intersects predicate has the following equivalent definitions:
[T********]
[*T*******]
[***T*****]
[****T****]
! g.disjoint(this) = true
intersects is the inverse of disjoint)
intersects in interface Geometryintersects in class AbstractGeometrygeometry - the Geometry with which to compare this Geometrytrue if the two Geometrys intersectGeometry.disjoint(com.revolsys.jts.geom.Geometry)public boolean isAnyTestPointInTarget(Geometry geometry)
geom - a Puntal geometry to testpublic boolean isEmpty()
AbstractGeometryGeometry is
empty.isEmpty in interface GeometryisEmpty in class AbstractGeometrytrue if this Geometry does not cover any pointspublic LineString prepare()
prepare in interface Geometryprepare in interface LineStringprepare in class AbstractLineStringCopyright © 2015 Revolution Systems Inc.. All rights reserved.