public class JTSGeometryOperations extends Object implements ProjectedGeometryOperations
ProjectedGeometryOperations that delegates to the corresponding JTS operations.Default| Constructor and Description |
|---|
JTSGeometryOperations() |
| Modifier and Type | Method and Description |
|---|---|
<P extends C2D,G extends Geometry<P> & Polygonal<P>> |
area(G geometry)
Creates an operation to determine the area of the specified
Geometry. |
<P extends C2D> |
boundary(Geometry<P> geometry)
Creates an operation to calculate the boundary of the specified
Geometry. |
<P extends C2D> |
buffer(Geometry<P> geometry,
double distance)
Returns an operation to calculate a
Geometry that represents all points whose distance from the specified
Geometry is less than or equal the specified distance. |
<P extends C2D,G extends Geometry<P> & Polygonal<P>> |
centroid(G geometry)
Creates an operation that calculates a centroid for the specified
Geometry. |
<P extends C2D> |
contains(Geometry<P> geometry,
Geometry<P> other)
Creates an operation to check if the first specified
Geometry spatially
contains the second. |
<P extends C2D> |
convexHull(Geometry<P> geometry)
Returns an operation to calculate the convex hull of the specified
Geometry. |
<P extends C2D> |
crosses(Geometry<P> geometry,
Geometry<P> other)
Creates an operation to check if the specified
Geometrys cross. |
<P extends C2D> |
difference(Geometry<P> geometry,
Geometry<P> other)
Returns an operation to calculate the point set difference of the specified
Geometrys. |
<P extends C2D> |
distance(Geometry<P> geometry,
Geometry<P> other)
Returns an operation to calculate the shortest distance between any two points in the two
Geometrys in the
coordinate reference system of this Geometry. |
<P extends C2D> |
intersection(Geometry<P> geometry,
Geometry<P> other)
Returns an operation to calculate the point set intersection of the specified
Geometrys. |
<P extends C2D> |
intersects(Geometry<P> geometry,
Geometry<P> other)
Creates an operation to check if the specified
Geometrys intersect. |
<P extends C2D> |
isSimple(Geometry<P> geometry)
Creates an operation to test the simplicity of the specified
Geometry. |
<P extends C2D,G extends Geometry<P> & Linear<P>> |
length(G geometry)
Creates an operation to determine the length of the specified
Geometry. |
<P extends C2D> |
overlaps(Geometry<P> geometry,
Geometry<P> other)
Creates an operation to check if the specified
Geometrys overlap. |
<P extends C2D> |
relates(Geometry<P> geometry,
Geometry<P> other,
String matrix)
Creates an operation to check if the specified
Geometrys are spatially related by testing
for intersections between the interior, boundary and exterior of the two geometric objects as specified by
the values in the intersection pattern matrix. |
<P extends C2D> |
symmetricDifference(Geometry<P> geometry,
Geometry<P> other)
Returns an operation to calculate the point set symmetric difference of the specified
Geometrys. |
<P extends C2D> |
touches(Geometry<P> geometry,
Geometry<P> other)
Creates an operation to check if the specified
Geometrys touch. |
<P extends C2D> |
union(Geometry<P> geometry,
Geometry<P> other)
Returns an operation to calculate the point set union of the specified
Geometrys. |
public <P extends C2D> boolean isSimple(Geometry<P> geometry)
ProjectedGeometryOperationsGeometry.isSimple in interface ProjectedGeometryOperationsgeometry - the Geometry to test for simplicity.GeometryOperation that checks if the specified Geometry is simple.public <P extends C2D> Geometry<P> boundary(Geometry<P> geometry)
ProjectedGeometryOperationsGeometry.boundary in interface ProjectedGeometryOperationsgeometry - the Geometry for which to calculate the boundary.GeometryOperation that calculates a Geometry representing the boundary of the specified Geometry.public <P extends C2D> boolean intersects(Geometry<P> geometry, Geometry<P> other)
ProjectedGeometryOperationsGeometrys intersect.intersects in interface ProjectedGeometryOperationsgeometry - the first Geometry operand of the intersection testother - the second Geometry operand of the intersection testGeometryOperation that checks if the specified Geometrys spatially intersectpublic <P extends C2D> boolean touches(Geometry<P> geometry, Geometry<P> other)
ProjectedGeometryOperationsGeometrys touch.touches in interface ProjectedGeometryOperationsgeometry - the first Geometry operand of the touch testother - the second Geometry operand of the touch testGeometryOperation that checks if the specified Geometrys spatially touchpublic <P extends C2D> boolean crosses(Geometry<P> geometry, Geometry<P> other)
ProjectedGeometryOperationsGeometrys cross.crosses in interface ProjectedGeometryOperationsgeometry - the first Geometry operand of the cross testother - the second Geometry operand of the cross testGeometryOperation that checks if the specified Geometrys spatially crosspublic <P extends C2D> boolean contains(Geometry<P> geometry, Geometry<P> other)
ProjectedGeometryOperationsGeometry spatially
contains the second.contains in interface ProjectedGeometryOperationsgeometry - the first Geometry operand of the containment testother - the second Geometry operand of the containment testGeometryOperation that checks if the first specified Geometry spatially contains the secondpublic <P extends C2D> boolean overlaps(Geometry<P> geometry, Geometry<P> other)
ProjectedGeometryOperationsGeometrys overlap.overlaps in interface ProjectedGeometryOperationsgeometry - the first Geometry operand of the overlap testother - the second Geometry operand of the overlap testGeometryOperation that checks if the specified Geometrys spatially overlappublic <P extends C2D> boolean relates(Geometry<P> geometry, Geometry<P> other, String matrix)
ProjectedGeometryOperationsGeometrys are spatially related by testing
for intersections between the interior, boundary and exterior of the two geometric objects as specified by
the values in the intersection pattern matrix. This returns false if all the tested intersections are empty except
exterior (this) intersect exterior (another).relates in interface ProjectedGeometryOperationsgeometry - the first Geometry operand of the relates testother - the second Geometry operand of the relates testmatrix - the intersection pattern matrixGeometryOperation that checks if this instance intersects the specifed other Geometrypublic <P extends C2D> double distance(Geometry<P> geometry, Geometry<P> other)
ProjectedGeometryOperationsGeometrys in the
coordinate reference system of this Geometry. Only the X/Y-coordinates are used in the distance
calculation; M- and Z-coordinates are ignored.distance in interface ProjectedGeometryOperationsgeometry - the first Geometryother - the second GeometryGeometryOperation that calculates the shortest distance between the two specified Geometriespublic <P extends C2D> Geometry<P> buffer(Geometry<P> geometry, double distance)
ProjectedGeometryOperationsGeometry that represents all points whose distance from the specified
Geometry is less than or equal the specified distance.
Calculations are in the CoordinateReferenceSystem of this
Geometry.
Z- or M-coordinates are ignored in the buffering operation; and the result will always be a 2D geometry.
buffer in interface ProjectedGeometryOperationsgeometry - the Geometry for which to calculate the bufferdistance - the buffer distanceGeometryOperation that calculates a 2D Geometry representing the
buffer of the specified Geometry with the specified distance.public <P extends C2D> Geometry<P> convexHull(Geometry<P> geometry)
ProjectedGeometryOperationsGeometry.convexHull in interface ProjectedGeometryOperationsgeometry - the Geometry for which to calculate the convex hull.GeometryOperation that calculates the convex hull for the specified Geometry.public <P extends C2D> Geometry<P> intersection(Geometry<P> geometry, Geometry<P> other)
ProjectedGeometryOperationsGeometrys.intersection in interface ProjectedGeometryOperationsgeometry - the first Geometryother - the second GeometryGeometryOperation that calculates the point set intersection between the two specified Geometriespublic <P extends C2D> Geometry<P> union(Geometry<P> geometry, Geometry<P> other)
ProjectedGeometryOperationsGeometrys.union in interface ProjectedGeometryOperationsgeometry - the first Geometryother - the second GeometryGeometryOperation that calculates the point set union between the two specified Geometriespublic <P extends C2D> Geometry<P> difference(Geometry<P> geometry, Geometry<P> other)
ProjectedGeometryOperationsGeometrys.difference in interface ProjectedGeometryOperationsgeometry - the first Geometryother - the second GeometryGeometryOperation that calculates the point set difference between the two specified Geometriespublic <P extends C2D> Geometry<P> symmetricDifference(Geometry<P> geometry, Geometry<P> other)
ProjectedGeometryOperationsGeometrys.symmetricDifference in interface ProjectedGeometryOperationsgeometry - the first Geometryother - the second GeometryGeometryOperation that calculates the point set symmetric difference between the two specified Geometriespublic <P extends C2D,G extends Geometry<P> & Linear<P>> double length(G geometry)
ProjectedGeometryOperationsGeometry.length in interface ProjectedGeometryOperationsgeometry - the Geometrypublic <P extends C2D,G extends Geometry<P> & Polygonal<P>> double area(G geometry)
ProjectedGeometryOperationsGeometry.area in interface ProjectedGeometryOperationsgeometry - the Geometrypublic <P extends C2D,G extends Geometry<P> & Polygonal<P>> Point<P> centroid(G geometry)
ProjectedGeometryOperationsGeometry.centroid in interface ProjectedGeometryOperationsG - Polygonal Geometrygeometry - the GeometryPointCopyright © 2015 geolatte.org. All rights reserved.