public class PreparedLineString extends Object
Lineal geometries.
Instances of this class are thread-safe.
| Constructor and Description |
|---|
PreparedLineString(Lineal
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(Geometry
Default implementation.
|
boolean |
containsProperly(Geometry
Default implementation.
|
boolean |
coveredBy(Geometry
Default implementation.
|
boolean |
covers(Geometry
Default implementation.
|
boolean |
crosses(Geometry
Default implementation.
|
boolean |
disjoint(Geometry
Standard implementation for all geometries.
|
protected boolean |
envelopeCovers(Geometry
Determines whether the envelope of this geometry covers the Geometry g.
|
protected boolean |
envelopesIntersect(Geometry
Determines whether a Geometry g interacts with this geometry by testing the geometry envelopes.
|
Geometry |
getGeometry()
Gets the original
Geometry which has been prepared.
|
FastSegmentSetIntersectionFinder |
getIntersectionFinder()
|
List |
getRepresentativePoints()
Gets the list of representative points for this geometry.
|
boolean |
intersects(Geometry
Default implementation.
|
boolean |
isAnyTargetComponentInTest(Geometry
Tests whether any representative of the target geometry intersects the test geometry.
|
boolean |
overlaps(Geometry
Default implementation.
|
String |
toString()
|
boolean |
touches(Geometry
Default implementation.
|
boolean |
within(Geometry
Default implementation.
|
public PreparedLineString(Linealline)
public FastSegmentSetIntersectionFindergetIntersectionFinder()
public boolean intersects(Geometryg)
intersects in interface
PreparedGeometry
g - the Geometry to test
Geometry.intersects(Geometry)
public GeometrygetGeometry()
PreparedGeometry
Geometry which has been prepared.
getGeometry in interface
PreparedGeometry
public ListgetRepresentativePoints()
public boolean isAnyTargetComponentInTest(GeometrytestGeom)
geom - the test geometry
repPts - the representative points of the target geometry
protected boolean envelopesIntersect(Geometryg)
g - a Geometry
protected boolean envelopeCovers(Geometryg)
g - a Geometry
public boolean contains(Geometryg)
contains in interface
PreparedGeometry
g - the Geometry to test
Geometry.contains(Geometry)
public boolean containsProperly(Geometryg)
containsProperly in interface
PreparedGeometry
g - the Geometry to test
Geometry.contains(com.vividsolutions.jts.geom.Geometry)
public boolean coveredBy(Geometryg)
coveredBy in interface
PreparedGeometry
g - the Geometry to test
Geometry.coveredBy(Geometry)
public boolean covers(Geometryg)
covers in interface
PreparedGeometry
g - the Geometry to test
Geometry.covers(Geometry)
public boolean crosses(Geometryg)
crosses in interface
PreparedGeometry
g - the Geometry to test
Geometry.crosses(Geometry)
public boolean disjoint(Geometryg)
GeometryCollections as input.
disjoint in interface
PreparedGeometry
g - the Geometry to test
Geometry.disjoint(Geometry)
public boolean overlaps(Geometryg)
overlaps in interface
PreparedGeometry
g - the Geometry to test
Geometry.overlaps(Geometry)
public boolean touches(Geometryg)
touches in interface
PreparedGeometry
g - the Geometry to test
Geometry.touches(Geometry)
public boolean within(Geometryg)
within in interface
PreparedGeometry
g - the Geometry to test
Geometry.within(Geometry)
public StringtoString()