22#include <geos/geom/Coordinate.h>
23#include <geos/geom/Point.h>
24#include <geos/geom/Envelope.h>
25#include <geos/algorithm/locate/IndexedPointInAreaLocator.h>
26#include <geos/operation/distance/IndexedFacetDistance.h>
114 std::unique_ptr<geom::Geometry> inputGeomBoundary;
125 double distanceToBoundary(
double x,
double y);
131 static constexpr double SQRT2 = 1.4142135623730951;
139 Cell(
double p_x,
double p_y,
double p_hSize,
double p_distanceToBoundary)
143 , distance(p_distanceToBoundary)
144 , maxDist(p_distanceToBoundary+(p_hSize*SQRT2))
153 double getMaxDistance()
const
157 double getDistance()
const
161 double getHSize()
const
173 bool operator< (
const Cell& rhs)
const
175 return maxDist < rhs.maxDist;
177 bool operator> (
const Cell& rhs)
const
179 return maxDist > rhs.maxDist;
181 bool operator==(
const Cell& rhs)
const
183 return maxDist == rhs.maxDist;
187 void createInitialGrid(
const geom::Envelope* env, std::priority_queue<Cell>& cellQueue);
188 Cell createCentroidCell(
const geom::Geometry* geom);
Definition: MaximumInscribedCircle.h:56
std::unique_ptr< geom::Point > getCenter()
static std::unique_ptr< geom::Point > getCenter(const geom::Geometry *polygonal, double tolerance)
std::unique_ptr< geom::LineString > getRadiusLine()
std::unique_ptr< geom::Point > getRadiusPoint()
static std::unique_ptr< geom::LineString > getRadiusLine(const geom::Geometry *polygonal, double tolerance)
Determines the location of Coordinates relative to an areal geometry, using indexing for efficiency.
Definition: IndexedPointInAreaLocator.h:54
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:58
An Envelope defines a rectangulare region of the 2D coordinate plane.
Definition: Envelope.h:58
Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...
Definition: GeometryFactory.h:66
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:186
Computes the distance between the facets (segments and vertices) of two Geometrys using a Branch-and-...
Definition: IndexedFacetDistance.h:46
Basic namespace for all GEOS functionalities.
Definition: geos.h:39