GEOS  3.9.1dev
Static Public Member Functions | List of all members
geos::noding::SegmentStringUtil Class Reference

Utility methods for processing SegmentStrings. More...

#include <SegmentStringUtil.h>

Static Public Member Functions

static void extractSegmentStrings (const geom::Geometry *g, SegmentString::ConstVect &segStr)
 Extracts all linear components from a given Geometry to SegmentStrings. More...
 

Detailed Description

Utility methods for processing SegmentStrings.

Author
Martin Davis

Definition at line 37 of file SegmentStringUtil.h.

Member Function Documentation

static void geos::noding::SegmentStringUtil::extractSegmentStrings ( const geom::Geometry g,
SegmentString::ConstVect segStr 
)
inlinestatic

Extracts all linear components from a given Geometry to SegmentStrings.

The SegmentString data item is set to be the source Geometry.

Parameters
gthe geometry to extract from
segStra List of SegmentStrings (output parameter). Ownership of elements pushed to the vector is transferred to caller.

Definition at line 51 of file SegmentStringUtil.h.

References geos::geom::LineString::getCoordinates(), and geos::geom::util::LinearComponentExtracter::getLines().

Here is the call graph for this function:


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