GEOS 3.14.0dev
Public Member Functions | 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 (uint8_t index) const
 
const GeometrygetGeometry (uint8_t geomIndex) const
 
const EnvelopegetEnvelope (uint8_t geomIndex) const
 
bool isEmpty (uint8_t geomIndex) const
 
bool isArea (uint8_t geomIndex) const
 
int getAreaIndex () const
 
bool isLine (uint8_t geomIndex) const
 
bool isAllPoints () const
 
bool hasPoints () const
 
bool hasEdges (uint8_t geomIndex) const
 
Location locatePointInArea (uint8_t geomIndex, const Coordinate &pt)
 
PointOnGeometryLocatorgetLocator (uint8_t geomIndex)
 
void setCollapsed (uint8_t geomIndex, bool isGeomCollapsed)
 

Detailed Description

Manages the input geometries for an overlay operation. The second geometry is allowed to be null, to support for instance precision reduction.

Author
Martin Davis

Member Function Documentation

◆ hasEdges()

bool geos::operation::overlayng::InputGeometry::hasEdges ( uint8_t  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

◆ locatePointInArea()

Location geos::operation::overlayng::InputGeometry::locatePointInArea ( uint8_t  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

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