22#include <geos/geom/prep/PreparedPolygonPredicate.h>
43 static double distance(
const PreparedPolygon& prep,
const geom::Geometry* geom)
45 PreparedPolygonDistance op(prep);
46 return op.distance(geom);
49 PreparedPolygonDistance(
const PreparedPolygon& prep)
50 : PreparedPolygonPredicate(&prep)
53 double distance(
const geom::Geometry* g)
const;
55 bool isWithinDistance(
const geom::Geometry* g,
double d)
const;
60 PreparedPolygonDistance(
const PreparedPolygonDistance& other) =
delete;
61 PreparedPolygonDistance& operator=(
const PreparedPolygonDistance& rhs) =
delete;
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:197
A base class for predicate operations on PreparedPolygons.
Definition PreparedPolygonPredicate.h:57
A prepared version of Polygon or MultiPolygon geometries.
Definition PreparedPolygon.h:51
Contains classes and interfaces implementing algorithms that optimize the performance of repeated cal...
Definition AbstractPreparedPolygonContains.h:30
Basic namespace for all GEOS functionalities.
Definition geos.h:39