Class MaxDistanceOp


  • public class MaxDistanceOp
    extends Object
    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
    • Constructor Detail

      • MaxDistanceOp

        public MaxDistanceOp​(org.locationtech.jts.geom.Geometry geomA,
                             org.locationtech.jts.geom.Geometry geomB)
    • Method Detail

      • getDistance

        public Double 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: