#include <LinearComponentExtracter.h>
Extracts all the 1-dimensional (LineString) components from a Geometry.
◆ LinearComponentExtracter()
geos::geom::util::LinearComponentExtracter::LinearComponentExtracter |
( |
std::vector< const LineString * > & |
newComps | ) |
|
Constructs a LinearComponentExtracterFilter with a list in which to store LineStrings found.
◆ filter_ro()
void geos::geom::util::LinearComponentExtracter::filter_ro |
( |
const Geometry * |
geom | ) |
|
|
overridevirtual |
◆ filter_rw()
void geos::geom::util::LinearComponentExtracter::filter_rw |
( |
Geometry * |
geom | ) |
|
|
overridevirtual |
◆ getLines()
static void geos::geom::util::LinearComponentExtracter::getLines |
( |
const Geometry & |
geom, |
|
|
std::vector< const LineString * > & |
ret |
|
) |
| |
|
static |
Push the linear components from a single geometry into the provided vector. If more than one geometry is to be processed, it is more efficient to create a single LinearComponentExtracterFilter instance and pass it to multiple geometries.
Referenced by geos::noding::SegmentStringUtil::extractSegmentStrings().
The documentation for this class was generated from the following file: