Class MaxDistanceOp.MaxDistanceFilter
- java.lang.Object
-
- org.h2gis.functions.spatial.distance.MaxDistanceOp.MaxDistanceFilter
-
- All Implemented Interfaces:
org.locationtech.jts.geom.CoordinateFilter
- Enclosing class:
- MaxDistanceOp
public class MaxDistanceOp.MaxDistanceFilter extends Object implements org.locationtech.jts.geom.CoordinateFilter
-
-
Constructor Summary
Constructors Constructor Description MaxDistanceFilter(HashSet<org.locationtech.jts.geom.Coordinate> coordsToExclude)Compute the max distance between two geometries
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfilter(org.locationtech.jts.geom.Coordinate coord)org.locationtech.jts.geom.Coordinate[]getCoordinatesDistance()Return the maximum distance as two coordinates.doublegetDistance()Return the maximum distance
-
-
-
Constructor Detail
-
MaxDistanceFilter
public MaxDistanceFilter(HashSet<org.locationtech.jts.geom.Coordinate> coordsToExclude)
Compute the max distance between two geometries- Parameters:
coordsToExclude-
-
-
Method Detail
-
filter
public void filter(org.locationtech.jts.geom.Coordinate coord)
- Specified by:
filterin interfaceorg.locationtech.jts.geom.CoordinateFilter
-
getDistance
public double getDistance()
Return the maximum distance- Returns:
-
getCoordinatesDistance
public org.locationtech.jts.geom.Coordinate[] getCoordinatesDistance()
Return the maximum distance as two coordinates. Usefull to draw it as a line- Returns:
-
-