19 #ifndef GEOS_INDEXEDFACETDISTANCE_H 20 #define GEOS_INDEXEDFACETDISTANCE_H 22 #include <geos/operation/distance/FacetSequenceTreeBuilder.h> 27 class GEOS_DLL IndexedFacetDistance {
29 IndexedFacetDistance(
const geom::Geometry* g) :
30 cachedTree(FacetSequenceTreeBuilder::build(g))
33 static double distance(
const geom::Geometry* g1,
const geom::Geometry* g2);
35 static std::vector<geom::Coordinate> nearestPoints(
const geom::Geometry* g1,
const geom::Geometry* g2);
37 double distance(
const geom::Geometry* g)
const;
39 std::vector<GeometryLocation> nearestLocations(
const geom::Geometry* g)
const;
40 std::vector<geom::Coordinate> nearestPoints(
const geom::Geometry* g)
const;
42 ~IndexedFacetDistance();
45 std::unique_ptr<geos::index::strtree::STRtree> cachedTree;
52 #endif //GEOS_INDEXEDFACETDISTANCE_H Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25