public interface GeometryOperations
GeometryOperation
s.
The semantics of the operations is as specified in Simple Feature Access - Part 1: common architecture
Modifier and Type | Method and Description |
---|---|
GeometryOperation<Geometry> |
createBoundaryOp(Geometry geometry)
Creates an operation to calculate the boundary of the specified
Geometry . |
GeometryOperation<Geometry> |
createBufferOp(Geometry 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. |
GeometryOperation<Boolean> |
createContainsOp(Geometry geometry,
Geometry other)
Creates an operation to check if the first specified
Geometry spatially
contains the second. |
GeometryOperation<Geometry> |
createConvexHullOp(Geometry geometry)
Returns an operation to calculate the convex hull of the specified
Geometry . |
GeometryOperation<Boolean> |
createCrossesOp(Geometry geometry,
Geometry other)
Creates an operation to check if the specified
Geometry s cross. |
GeometryOperation<Geometry> |
createDifferenceOp(Geometry geometry,
Geometry other)
Returns an operation to calculate the point set difference of the specified
Geometry s. |
GeometryOperation<Double> |
createDistanceOp(Geometry geometry,
Geometry other)
Returns an operation to calculate the shortest distance between any two points in the two
Geometry s in the
coordinate reference system of this Geometry . |
GeometryOperation<Envelope> |
createEnvelopeOp(Geometry geometry)
Creates an operation to calculate the
Envelope of the specified Geometry . |
GeometryOperation<Geometry> |
createIntersectionOp(Geometry geometry,
Geometry other)
Returns an operation to calculate the point set intersection of the specified
Geometry s. |
GeometryOperation<Boolean> |
createIntersectsOp(Geometry geometry,
Geometry other)
Creates an operation to check if the specified
Geometry s intersect. |
GeometryOperation<Boolean> |
createIsSimpleOp(Geometry geometry)
Creates an operation to test the simplicity of the specified
Geometry . |
GeometryOperation<Geometry> |
createLocateAlongOp(Geometry geometry,
double mValue)
Creates an operation to calculate the
GeometryCollection that matches the specified M-coordinate value. |
GeometryOperation<Geometry> |
createLocateBetweenOp(Geometry geometry,
double startMeasure,
double endMeasure)
Creates an operation to calculate the
GeometryCollection that matches the specified range of M-coordinate value
inclusively. |
GeometryOperation<Boolean> |
createOverlapsOp(Geometry geometry,
Geometry other)
Creates an operation to check if the specified
Geometry s overlap. |
GeometryOperation<Boolean> |
createRelateOp(Geometry geometry,
Geometry other,
String matrix)
Creates an operation to check if the specified
Geometry s 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. |
GeometryOperation<Geometry> |
createSymDifferenceOp(Geometry geometry,
Geometry other)
Returns an operation to calculate the point set symmetric difference of the specified
Geometry s. |
GeometryOperation<Boolean> |
createTouchesOp(Geometry geometry,
Geometry other)
Creates an operation to check if the specified
Geometry s touch. |
GeometryOperation<ByteBuffer> |
createToWkbOp(Geometry geometry)
Creates an operation to encode the specified
Geometry to Well-Known Binary format (WKB). |
GeometryOperation<String> |
createToWktOp(Geometry geometry)
Creates an operation to encode the specified
Geometry to Well-Known Text (WKT). |
GeometryOperation<Geometry> |
createUnionOp(Geometry geometry,
Geometry other)
Returns an operation to calculate the point set union of the specified
Geometry s. |
GeometryOperation<Boolean> createIsSimpleOp(Geometry geometry)
Geometry
.geometry
- the Geometry
to test for simplicity.GeometryOperation
that checks if the specified Geometry
is simple.GeometryOperation<Geometry> createBoundaryOp(Geometry geometry)
Geometry
.geometry
- the Geometry
for which to calculate the boundary.GeometryOperation
that calculates a Geometry
representing the boundary of the specified Geometry
.GeometryOperation<Envelope> createEnvelopeOp(Geometry geometry)
Envelope
of the specified Geometry
.geometry
- the Geometry
for which to calculate the envelope.GeometryOperation
that calculates the Envelope
of the specified Geometry
.GeometryOperation<Boolean> createIntersectsOp(Geometry geometry, Geometry other)
Geometry
s intersect.geometry
- the first Geometry
operand of the intersection testother
- the second Geometry
operand of the intersection testGeometryOperation
that checks if the specified Geometry
s spatially intersectGeometryOperation<Boolean> createTouchesOp(Geometry geometry, Geometry other)
Geometry
s touch.geometry
- the first Geometry
operand of the touch testother
- the second Geometry
operand of the touch testGeometryOperation
that checks if the specified Geometry
s spatially touchGeometryOperation<Boolean> createCrossesOp(Geometry geometry, Geometry other)
Geometry
s cross.geometry
- the first Geometry
operand of the cross testother
- the second Geometry
operand of the cross testGeometryOperation
that checks if the specified Geometry
s spatially crossGeometryOperation<Boolean> createContainsOp(Geometry geometry, Geometry other)
Geometry
spatially
contains the second.geometry
- 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 secondGeometryOperation<Boolean> createOverlapsOp(Geometry geometry, Geometry other)
Geometry
s overlap.geometry
- the first Geometry
operand of the overlap testother
- the second Geometry
operand of the overlap testGeometryOperation
that checks if the specified Geometry
s spatially overlapGeometryOperation<Boolean> createRelateOp(Geometry geometry, Geometry other, String matrix)
Geometry
s 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).geometry
- the first Geometry
operand of the relate testother
- the second Geometry
operand of the relate testmatrix
- the intersection pattern matrixGeometryOperation
that checks if this instance intersects the specifed other Geometry
GeometryOperation<Geometry> createLocateAlongOp(Geometry geometry, double mValue)
GeometryCollection
that matches the specified M-coordinate value.
This method is only valid if executed on 0- or 1-dimensional objects or collections thereof.
The semantics implemented here are specified by SFA 1.2.1, § 6.1.2.6.
geometry
- the geometry on which to perform the calculationmValue
- the specified M-coordinate valueGeometryOperation
that calculates the GeometryCollection
matching
the specified M-coordinate value.IllegalArgumentException
- if this method is executed on 2-dimensional Geometry
s.GeometryOperation<Geometry> createLocateBetweenOp(Geometry geometry, double startMeasure, double endMeasure)
GeometryCollection
that matches the specified range of M-coordinate value
inclusively.
This method is only valid if executed on 0- or 1-dimensional objects or collections thereof.
The semantics implemented here are specified by SFA 1.2.1, § 6.1.2.6.
geometry
- the geometry on which to perform the calculationstartMeasure
- the start of the specified range of M-coordinate valuesendMeasure
- the end of the specified range of M-coordinate valuesGeometryOperation
that calculates the GeometryCollection
matching the
specified range of M-coordinate values.IllegalArgumentException
- if this method is executed on 2-dimensional Geometry
s.GeometryOperation<Double> createDistanceOp(Geometry geometry, Geometry other)
Geometry
s 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.geometry
- the first Geometry
other
- the second Geometry
GeometryOperation
that calculates the shortest distance between the two specified Geometries
GeometryOperation<Geometry> createBufferOp(Geometry geometry, double distance)
Geometry
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.
geometry
- 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.GeometryOperation<Geometry> createConvexHullOp(Geometry geometry)
Geometry
.geometry
- the Geometry
for which to calculate the convex hull.GeometryOperation
that calculates the convex hull for the specified Geometry
.GeometryOperation<Geometry> createIntersectionOp(Geometry geometry, Geometry other)
Geometry
s.geometry
- the first Geometry
other
- the second Geometry
GeometryOperation
that calculates the point set intersection between the two specified Geometries
GeometryOperation<Geometry> createUnionOp(Geometry geometry, Geometry other)
Geometry
s.geometry
- the first Geometry
other
- the second Geometry
GeometryOperation
that calculates the point set union between the two specified Geometries
GeometryOperation<Geometry> createDifferenceOp(Geometry geometry, Geometry other)
Geometry
s.geometry
- the first Geometry
other
- the second Geometry
GeometryOperation
that calculates the point set difference between the two specified Geometries
GeometryOperation<Geometry> createSymDifferenceOp(Geometry geometry, Geometry other)
Geometry
s.geometry
- the first Geometry
other
- the second Geometry
GeometryOperation
that calculates the point set symmetric difference between the two specified Geometries
GeometryOperation<String> createToWktOp(Geometry geometry)
Geometry
to Well-Known Text (WKT).
Which "dialect" of WKT is used, is implementation defined.
geometry
- the Geometry
to encode into WKTGeometry
to WKTGeometryOperation<ByteBuffer> createToWkbOp(Geometry geometry)
Geometry
to Well-Known Binary format (WKB).
Which "dialect" of WKB is used, is implementation defined.
geometry
- the Geometry
to encode to WKBGeometry
to WKBCopyright © 2015 geolatte.org. All rights reserved.