17#include <geos/algorithm/locate/IndexedPointInAreaLocator.h>
18#include <geos/algorithm/locate/PointOnGeometryLocator.h>
19#include <geos/geom/Coordinate.h>
20#include <geos/geom/Envelope.h>
21#include <geos/geom/Geometry.h>
22#include <geos/geom/Location.h>
23#include <geos/export.h>
41using namespace geos::algorithm::locate;
42using namespace geos::geom;
44class GEOS_DLL InputGeometry {
49 std::array<const Geometry*, 2> geom;
50 std::unique_ptr<PointOnGeometryLocator> ptLocatorA;
51 std::unique_ptr<PointOnGeometryLocator> ptLocatorB;
52 std::array<bool, 2> isCollapsed;
58 InputGeometry(
const Geometry* geomA,
const Geometry* geomB);
60 bool isSingle()
const;
61 int getDimension(uint8_t index)
const;
62 const Geometry* getGeometry(uint8_t geomIndex)
const;
63 const Envelope* getEnvelope(uint8_t geomIndex)
const;
64 bool isEmpty(uint8_t geomIndex)
const;
65 bool isArea(uint8_t geomIndex)
const;
66 int getAreaIndex()
const;
67 bool isLine(uint8_t geomIndex)
const;
68 bool isAllPoints()
const;
69 bool hasPoints()
const;
78 bool hasEdges(uint8_t geomIndex)
const;
91 Location locatePointInArea(uint8_t geomIndex,
const Coordinate& pt);
93 PointOnGeometryLocator* getLocator(uint8_t geomIndex);
94 void setCollapsed(uint8_t geomIndex,
bool isGeomCollapsed);
Location
Constants representing the location of a point relative to a geometry.
Definition Location.h:32
Provides classes for implementing operations on geometries.
Definition namespaces.h:179
Basic namespace for all GEOS functionalities.
Definition geos.h:39