Class MaxDistanceOp
java.lang.Object
org.h2gis.functions.spatial.distance.MaxDistanceOp
An operation to compute the maximum distance between two geometries.
If the geometry 1 and geometry 2 is the same geometry the operation will
return the distance between the two vertices most far from each other in that geometry.
- Author:
- Erwan Bocher
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionMaxDistanceOp(org.locationtech.jts.geom.Geometry geomA, org.locationtech.jts.geom.Geometry geomB) -
Method Summary
Modifier and TypeMethodDescriptionorg.locationtech.jts.geom.Coordinate[]Return the two coordinates to build the max distance lineReturn the max distance
-
Constructor Details
-
MaxDistanceOp
public MaxDistanceOp(org.locationtech.jts.geom.Geometry geomA, org.locationtech.jts.geom.Geometry geomB)
-
-
Method Details
-
getDistance
Return the max distance- Returns:
-
getCoordinatesDistance
public org.locationtech.jts.geom.Coordinate[] getCoordinatesDistance()Return the two coordinates to build the max distance line- Returns:
-