GEOS  3.9.1dev
Public Member Functions | Private Attributes | List of all members
geos::operation::overlayng::InputGeometry Class Reference

#include <InputGeometry.h>

Public Member Functions

 InputGeometry (const Geometry *geomA, const Geometry *geomB)
 
bool isSingle () const
 
int getDimension (int index) const
 
const GeometrygetGeometry (int geomIndex) const
 
const EnvelopegetEnvelope (int geomIndex) const
 
bool isEmpty (int geomIndex) const
 
bool isArea (int geomIndex) const
 
int getAreaIndex () const
 
bool isLine (int geomIndex) const
 
bool isAllPoints () const
 
bool hasPoints () const
 
bool hasEdges (int geomIndex) const
 
Location locatePointInArea (int geomIndex, const Coordinate &pt)
 
PointOnGeometryLocatorgetLocator (int geomIndex)
 
void setCollapsed (int geomIndex, bool isGeomCollapsed)
 

Private Attributes

std::array< const Geometry *, 2 > geom
 
std::unique_ptr< PointOnGeometryLocatorptLocatorA
 
std::unique_ptr< PointOnGeometryLocatorptLocatorB
 
std::array< bool, 2 > isCollapsed
 

Detailed Description

Definition at line 44 of file InputGeometry.h.

Constructor & Destructor Documentation

geos::operation::overlayng::InputGeometry::InputGeometry ( const Geometry geomA,
const Geometry geomB 
)

Member Function Documentation

int geos::operation::overlayng::InputGeometry::getAreaIndex ( ) const
int geos::operation::overlayng::InputGeometry::getDimension ( int  index) const
const Envelope* geos::operation::overlayng::InputGeometry::getEnvelope ( int  geomIndex) const
const Geometry* geos::operation::overlayng::InputGeometry::getGeometry ( int  geomIndex) const
PointOnGeometryLocator* geos::operation::overlayng::InputGeometry::getLocator ( int  geomIndex)
bool geos::operation::overlayng::InputGeometry::hasEdges ( int  geomIndex) const

Tests if an input geometry has edges. This indicates that topology needs to be computed for them.

Parameters
geomIndex
Returns
true if the input geometry has edges
bool geos::operation::overlayng::InputGeometry::hasPoints ( ) const
bool geos::operation::overlayng::InputGeometry::isAllPoints ( ) const
bool geos::operation::overlayng::InputGeometry::isArea ( int  geomIndex) const
bool geos::operation::overlayng::InputGeometry::isEmpty ( int  geomIndex) const
bool geos::operation::overlayng::InputGeometry::isLine ( int  geomIndex) const
bool geos::operation::overlayng::InputGeometry::isSingle ( ) const
Location geos::operation::overlayng::InputGeometry::locatePointInArea ( int  geomIndex,
const Coordinate pt 
)

Determines the location within an area geometry. This allows disconnected edges to be fully located.

Parameters
geomIndexthe index of the geometry
ptthe coordinate to locate
Returns
the location of the coordinate
See also
Location
void geos::operation::overlayng::InputGeometry::setCollapsed ( int  geomIndex,
bool  isGeomCollapsed 
)

Member Data Documentation

std::array<const Geometry*, 2> geos::operation::overlayng::InputGeometry::geom
private

Definition at line 49 of file InputGeometry.h.

std::array<bool, 2> geos::operation::overlayng::InputGeometry::isCollapsed
private

Definition at line 52 of file InputGeometry.h.

std::unique_ptr<PointOnGeometryLocator> geos::operation::overlayng::InputGeometry::ptLocatorA
private

Definition at line 50 of file InputGeometry.h.

std::unique_ptr<PointOnGeometryLocator> geos::operation::overlayng::InputGeometry::ptLocatorB
private

Definition at line 51 of file InputGeometry.h.


The documentation for this class was generated from the following file: