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 double getDistance(
const geom::Geometry * g)
const;
37 ~IndexedFacetDistance();
40 std::unique_ptr<geos::index::strtree::STRtree> cachedTree;
47 #endif //GEOS_INDEXEDFACETDISTANCE_H