17#include <geos/geom/Point.h>
18#include <geos/geom/Polygon.h>
19#include <geos/geom/LineString.h>
20#include <geos/geom/Geometry.h>
22#include <geos/export.h>
31class CoordinateSequence;
67 static constexpr double SAFE_ENV_BUFFER_FACTOR = 0.1;
68 static constexpr int SAFE_ENV_GRID_FACTOR = 3;
69 static constexpr double AREA_HEURISTIC_TOLERANCE = 0.1;
86 static bool isEmpty(
const Geometry* geom);
95 static bool isLess(
double v1,
double v2,
double tol) {
96 return v1 <= v2 * (1 + tol);
99 static bool isGreater(
double v1,
double v2,
double tol) {
100 return v1 >= v2 * (1 - tol);
168 std::vector<std::unique_ptr<Polygon>>& resultPolyList,
169 std::vector<std::unique_ptr<LineString>>& resultLineList,
170 std::vector<std::unique_ptr<Point>>& resultPointList,
193 int opCode,
const Geometry* result);
202 static void moveGeometry(std::vector<std::unique_ptr<T>>& inGeoms, std::vector<std::unique_ptr<Geometry>>& outGeoms)
204 static_assert(std::is_base_of<Geometry, T>::value,
"");
205 for (
auto& geom: inGeoms) {
207 outGeoms.emplace_back(outGeom);
The internal representation of a list of coordinates inside a Geometry.
Definition CoordinateSequence.h:56
Coordinate is the lightweight class used to store coordinates.
Definition Coordinate.h:217
An Envelope defines a rectangulare region of the 2D coordinate plane.
Definition Envelope.h:59
Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...
Definition GeometryFactory.h:70
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:197
Definition LineString.h:66
Represents a linear polygon, which may include holes.
Definition Polygon.h:61
Specifies the precision model of the Coordinate in a Geometry.
Definition PrecisionModel.h:88
Definition OverlayGraph.h:52
Definition OverlayUtil.h:54
static bool round(const Point *pt, const PrecisionModel *pm, Coordinate &rsltCoord)
static int resultDimension(int opCode, int dim0, int dim1)
static bool isEmptyResult(int opCode, const Geometry *a, const Geometry *b, const PrecisionModel *pm)
static std::unique_ptr< Geometry > createEmptyResult(int dim, const GeometryFactory *geomFact)
static bool isEnvDisjoint(const Geometry *a, const Geometry *b, const PrecisionModel *pm)
static bool isResultAreaConsistent(const Geometry *geom0, const Geometry *geom1, int opCode, const Geometry *result)
static std::unique_ptr< Geometry > createResultGeometry(std::vector< std::unique_ptr< Polygon > > &resultPolyList, std::vector< std::unique_ptr< LineString > > &resultLineList, std::vector< std::unique_ptr< Point > > &resultPointList, const GeometryFactory *geometryFactory)
static bool clippingEnvelope(int opCode, const InputGeometry *inputGeom, const PrecisionModel *pm, Envelope &rsltEnvelope)
Basic namespace for all GEOS functionalities.
Definition geos.h:39