19 #ifndef GEOS_ALGORITHM_DISTANCE_DISCRETEHAUSDORFFDISTANCE_H 20 #define GEOS_ALGORITHM_DISTANCE_DISCRETEHAUSDORFFDISTANCE_H 22 #include <geos/export.h> 23 #include <geos/algorithm/distance/PointPairDistance.h> 24 #include <geos/algorithm/distance/DistanceToPoint.h> 25 #include <geos/util/IllegalArgumentException.h> 26 #include <geos/geom/Geometry.h> 27 #include <geos/util/math.h> 28 #include <geos/geom/CoordinateFilter.h> 29 #include <geos/geom/CoordinateSequenceFilter.h> 36 #pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class 49 namespace intervalrtree {
129 if ( dFrac > 1.0 || dFrac <= 0.0 )
132 "Fraction is not in range (0.0 - 1.0]");
141 return ptDist.getDistance();
144 double orientedDistance()
146 computeOrientedDistance(g0, g1, ptDist);
147 return ptDist.getDistance();
150 const std::vector<geom::Coordinate> getCoordinates()
const 152 return ptDist.getCoordinates();
165 minPtDist.initialize();
166 DistanceToPoint::computeDistance(geom, *pt,
168 maxPtDist.setMaximum(minPtDist);
183 MaxPointDistanceFilter(
const MaxPointDistanceFilter& other);
184 MaxPointDistanceFilter& operator=(
const MaxPointDistanceFilter& rhs);
187 class MaxDensifiedByFractionDistanceFilter
192 MaxDensifiedByFractionDistanceFilter(
196 numSubSegs( std::size_t(util::round(1.0/fraction)) )
203 bool isGeometryChanged()
const {
return false; }
205 bool isDone()
const {
return false; }
215 std::size_t numSubSegs;
218 MaxDensifiedByFractionDistanceFilter(
const MaxDensifiedByFractionDistanceFilter& other);
219 MaxDensifiedByFractionDistanceFilter& operator=(
const MaxDensifiedByFractionDistanceFilter& rhs);
227 computeOrientedDistance(g0, g1, ptDist);
228 computeOrientedDistance(g1, g0, ptDist);
257 #endif // GEOS_ALGORITHM_DISTANCE_DISCRETEHAUSDORFFDISTANCE_H void setDensifyFraction(double dFrac)
Definition: DiscreteHausdorffDistance.h:127
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:60
Definition: CoordinateSequenceFilter.h:58
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:167
Indicates one or more illegal arguments.
Definition: IllegalArgumentException.h:34
An algorithm for computing a distance metric which is an approximation to the Hausdorff Distance base...
Definition: DiscreteHausdorffDistance.h:100
Definition: CoordinateFilter.h:43
Definition: PointPairDistance.h:37
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25
Definition: DistanceToPoint.h:47
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:59