20 #ifndef GEOS_ALGORITHM_CONSTRUCT_MAXIMUMCIRCLE_H 21 #define GEOS_ALGORITHM_CONSTRUCT_MAXIMUMCIRCLE_H 39 class GeometryFactory;
70 std::unique_ptr<geom::Point> getCenter();
82 std::unique_ptr<geom::Point> getRadiusPoint();
89 std::unique_ptr<geom::LineString> getRadiusLine();
99 static std::unique_ptr<geom::Point> getCenter(
const geom::Geometry* polygonal,
double tolerance);
109 static std::unique_ptr<geom::LineString> getRadiusLine(
const geom::Geometry* polygonal,
double tolerance);
126 double distanceToBoundary(
double x,
double y);
132 static constexpr
double SQRT2 = 1.4142135623730951;
140 Cell(
double p_x,
double p_y,
double p_hSize,
double p_distanceToBoundary)
144 , distance(p_distanceToBoundary)
145 , maxDist(p_distanceToBoundary+(p_hSize*SQRT2))
178 bool operator> (
const Cell& rhs)
const 188 void createInitialGrid(
const geom::Envelope* env, std::priority_queue<Cell>& cellQueue);
198 #endif // GEOS_ALGORITHM_CONSTRUCT_MAXIMUMCIRCLE_H Determines the location of Coordinates relative to an areal geometry, using indexing for efficiency...
double getMaxDistance() const
An Envelope defines a rectangulare region of the 2D coordinate plane.
geom::Coordinate centerPt
Coordinate is the lightweight class used to store coordinates.
std::unique_ptr< geom::Geometry > inputGeomBoundary
const geom::Geometry * inputGeom
double getDistance() const
IndexedFacetDistance indexedDistance
Computes the distance between the facets (segments and vertices) of two Geometrys using a Branch-and-...
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
bool operator<(const Coordinate &a, const Coordinate &b)
Strict weak ordering operator for Coordinate.
const geom::GeometryFactory * factory
Cell(double p_x, double p_y, double p_hSize, double p_distanceToBoundary)
Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...
Basic namespace for all GEOS functionalities.
geom::Envelope getEnvelope() const
bool operator==(const Cell &rhs) const
geom::Coordinate radiusPt
IndexedPointInAreaLocator ptLocator