21 #include <geos/operation/distance/FacetSequenceTreeBuilder.h>
61 cachedTree(FacetSequenceTreeBuilder::build(g)),
110 struct FacetDistance {
111 double operator()(
const FacetSequence* a,
const FacetSequence* b)
const
113 return a->distance(*b);
117 std::unique_ptr<geos::index::strtree::TemplateSTRtree<const FacetSequence*>> cachedTree;
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:197
Computes the distance between the facets (segments and vertices) of two Geometrys using a Branch-and-...
Definition: IndexedFacetDistance.h:46
double distance(const geom::Geometry *g) const
Computes the distance from the base geometry to the given geometry.
std::unique_ptr< geom::CoordinateSequence > nearestPoints(const geom::Geometry *g) const
Compute the nearest locations on the target geometry and the given geometry.
static double distance(const geom::Geometry *g1, const geom::Geometry *g2)
Computes the distance between facets of two geometries.
std::vector< GeometryLocation > nearestLocations(const geom::Geometry *g) const
Computes the nearest locations on the base geometry and the given geometry.
static std::unique_ptr< geom::CoordinateSequence > nearestPoints(const geom::Geometry *g1, const geom::Geometry *g2)
Computes the nearest points of the facets of two geometries.
bool isWithinDistance(const geom::Geometry *g, double maxDistance) const
Tests whether the base geometry lies within a specified distance of the given geometry.
IndexedFacetDistance(const geom::Geometry *g)
Creates a new distance-finding instance for a given target geom::Geometry.
Definition: IndexedFacetDistance.h:60
Basic namespace for all GEOS functionalities.
Definition: Angle.h:25