public class PreparedMultiLineString extends AbstractMultiLineString
Lineal geometries.
Instances of this class are thread-safe.
| Constructor and Description |
|---|
PreparedMultiLineString(MultiLineString multiLine) |
| Modifier and Type | Method and Description |
|---|---|
BoundingBox |
getBoundingBox()
Gets an
BoundingBoxDoubleGf containing
the minimum and maximum x and y values in this Geometry. |
<V extends Geometry> |
getGeometries() |
<V extends Geometry> |
getGeometry(int partIndex)
Returns an element
Geometry from a GeometryCollection
(or this, if the geometry is not a collection). |
int |
getGeometryCount()
Returns the number of
Geometrys in a GeometryCollection
(or 1, if the geometry is not a collection). |
GeometryFactory |
getGeometryFactory()
Gets the geometryFactory which contains the context in which this geometry was created.
|
FastSegmentSetIntersectionFinder |
getIntersectionFinder() |
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. |
MultiLineString |
prepare() |
copy, equalsExact, getBoundary, getBoundaryDimension, getDataType, getDimension, getLineString, getLineStrings, getSegment, getToVertex, getUserData, getVertex, isClosed, isEquivalentClass, moveVertex, normalize, reverse, segments, setUserData, verticesappendVertex, clone, compareToSameClass, computeBoundingBox, deleteVertex, doEquals, geometries, getArea, getGeometries, getGeometryComponents, getLength, getPoint, getPointWithin, getVertexCount, insertVertex, intersects, move, toClockwise, toCounterClockwisebuffer, 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, getAxisCount, getCentroid, getClassSortIndex, getCoordinateSystem, getEnvelope, getGeometryType, getInteriorPoint, getNonZeroGeometryFactory, getSrid, getVertexIndex, hashCode, hasInvalidXyCoordinates, hasNonEmptyElements, hasNullElements, intersection, isAnyTargetComponentInTest, isGeometryCollection, isRectangle, isSimple, isValid, isWithinDistance, overlaps, relate, relate, setVertexIndex, symDifference, toString, touches, toWkt, union, union, withinfinalize, getClass, notify, notifyAll, wait, wait, waitcloneappendVertex, buffer, buffer, buffer, compareTo, compareToSameClass, contains, containsProperly, convert, convert, convexHull, coveredBy, covers, crosses, deleteVertex, difference, disjoint, distance, equal, equals, equals, equals, equalsExact, equalsNorm, equalsTopo, geometries, getArea, getAxisCount, getCentroid, getClassSortIndex, getCoordinateSystem, getEnvelope, getGeometries, getGeometryComponents, getGeometryType, getInteriorPoint, getLength, getPoint, getPointWithin, getSrid, getVertexCount, hashCode, hasInvalidXyCoordinates, insertVertex, intersection, intersects, isRectangle, isSimple, isValid, isWithinDistance, move, overlaps, relate, relate, symDifference, toClockwise, toCounterClockwise, touches, toWkt, union, union, withinpublic PreparedMultiLineString(MultiLineString multiLine)
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 AbstractMultiLineStringGeometry.public <V extends Geometry> List<V> getGeometries()
getGeometries in interface GeometrygetGeometries in class AbstractGeometrypublic <V extends Geometry> V getGeometry(int partIndex)
AbstractGeometryGeometry from a GeometryCollection
(or this, if the geometry is not a collection).getGeometry in interface GeometrygetGeometry in class AbstractGeometrypartIndex - the index of the geometry elementpublic int getGeometryCount()
AbstractGeometryGeometrys in a GeometryCollection
(or 1, if the geometry is not a collection).getGeometryCount in interface GeometrygetGeometryCount in class AbstractGeometrypublic GeometryFactory getGeometryFactory()
GeometrygetGeometryFactory in interface GeometrygetGeometryFactory in class AbstractGeometrypublic FastSegmentSetIntersectionFinder getIntersectionFinder()
public 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 AbstractGeometryCollectiontrue if this Geometry does not cover any pointspublic MultiLineString prepare()
Copyright © 2015 Revolution Systems Inc.. All rights reserved.