19 #ifndef GEOS_ALGORITHM_DISTANCE_DISCRETEHAUSDORFFDISTANCE_H 20 #define GEOS_ALGORITHM_DISTANCE_DISCRETEHAUSDORFFDISTANCE_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) {
131 "Fraction is not in range (0.0 - 1.0]");
141 return ptDist.getDistance();
147 computeOrientedDistance(g0, g1, ptDist);
148 return ptDist.getDistance();
151 const std::array<geom::Coordinate, 2>
154 return ptDist.getCoordinates();
167 minPtDist.initialize();
168 DistanceToPoint::computeDistance(geom, *pt,
170 maxPtDist.setMaximum(minPtDist);
198 numSubSegs(std::size_t(util::
round(1.0 / fraction)))
203 std::size_t index)
override;
240 computeOrientedDistance(p_g0, p_g1, ptDist);
241 computeOrientedDistance(p_g1, p_g0, ptDist);
270 #endif // GEOS_ALGORITHM_DISTANCE_DISCRETEHAUSDORFFDISTANCE_H
void setDensifyFraction(double dFrac)
const geom::Geometry & geom
DiscreteHausdorffDistance(const geom::Geometry &p_g0, const geom::Geometry &p_g1)
MaxPointDistanceFilter(const geom::Geometry &p_geom)
Coordinate is the lightweight class used to store coordinates.
bool isGeometryChanged() const override
Reports whether the execution of this filter has modified the coordinates of the geometry.
DistanceToPoint euclideanDist
double orientedDistance()
Interface for classes which provide operations that can be applied to the coordinates in a Coordinate...
PointPairDistance minPtDist
void compute(const geom::Geometry &p_g0, const geom::Geometry &p_g1)
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
PointPairDistance minPtDist
const geom::Geometry & geom
Indicates one or more illegal arguments.
An algorithm for computing a distance metric which is an approximation to the Hausdorff Distance base...
Geometry classes support the concept of applying a coordinate filter to every coordinate in the Geome...
const geom::Geometry & g0
const PointPairDistance & getMaxPointDistance() const
PointPairDistance maxPtDist
bool isDone() const override
Reports whether the application of this filter can be terminated.
Basic namespace for all GEOS functionalities.
double densifyFrac
Value of 0.0 indicates that no densification should take place.
PointPairDistance maxPtDist
const PointPairDistance & getMaxPointDistance() const
MaxDensifiedByFractionDistanceFilter(const geom::Geometry &p_geom, double fraction)
The internal representation of a list of coordinates inside a Geometry.
const std::array< geom::Coordinate, 2 > getCoordinates() const
void filter_ro(const geom::Coordinate *pt) override
Performs an operation with coord.
const geom::Geometry & g1