22#ifndef GEOS_ALGORITHM_DISTANCE_DISCRETEFRECHETDISTANCE_H
23#define GEOS_ALGORITHM_DISTANCE_DISCRETEFRECHETDISTANCE_H
25#include <geos/export.h>
26#include <geos/algorithm/distance/PointPairDistance.h>
27#include <geos/algorithm/distance/DistanceToPoint.h>
28#include <geos/util/IllegalArgumentException.h>
29#include <geos/geom/Geometry.h>
30#include <geos/util/math.h>
31#include <geos/geom/CoordinateFilter.h>
32#include <geos/geom/CoordinateSequence.h>
39#pragma warning(disable: 4251)
52namespace intervalrtree {
135 if(dFrac > 1.0 || dFrac <= 0.0) {
137 "Fraction is not in range (0.0 - 1.0]");
147 return ptDist.getDistance();
150 const std::array<geom::Coordinate, 2>
151 getCoordinates()
const
153 return ptDist.getCoordinates();
159 PointPairDistance& getFrecheDistance(std::vector< std::vector<PointPairDistance> >& ca,
size_t i,
size_t j,
168 PointPairDistance ptDist;
174 DiscreteFrechetDistance(
const DiscreteFrechetDistance& other) =
delete;
175 DiscreteFrechetDistance& operator=(
const DiscreteFrechetDistance& rhs) =
delete;
An algorithm for computing a distance metric which is an approximation to the Frechet Distance based ...
Definition DiscreteFrechetDistance.h:106
void setDensifyFraction(double dFrac)
Definition DiscreteFrechetDistance.h:133
The internal representation of a list of coordinates inside a Geometry.
Definition CoordinateSequence.h:58
Coordinate is the lightweight class used to store coordinates.
Definition Coordinate.h:60
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:188
Indicates one or more illegal arguments.
Definition IllegalArgumentException.h:34
Basic namespace for all GEOS functionalities.
Definition IndexedNestedRingTester.h:26