GEOS  3.8.0dev
Public Member Functions | Static Public Member Functions | List of all members
geos::operation::distance::ConnectedElementLocationFilter Class Reference

A ConnectedElementPointFilter extracts a single point from each connected element in a Geometry (e.g. a polygon, linestring or point) and returns them in a list. More...

#include <ConnectedElementLocationFilter.h>

Inheritance diagram for geos::operation::distance::ConnectedElementLocationFilter:
geos::geom::GeometryFilter

Public Member Functions

void filter_ro (const geom::Geometry *geom) override
 
void filter_rw (geom::Geometry *geom) override
 

Static Public Member Functions

static std::vector
< std::unique_ptr
< GeometryLocation > > 
getLocations (const geom::Geometry *geom)
 Returns a list containing a point from each Polygon, LineString, and Point found inside the specified geometry. More...
 

Detailed Description

A ConnectedElementPointFilter extracts a single point from each connected element in a Geometry (e.g. a polygon, linestring or point) and returns them in a list.

The elements of the list are GeometryLocation.

Member Function Documentation

static std::vector<std::unique_ptr<GeometryLocation> > geos::operation::distance::ConnectedElementLocationFilter::getLocations ( const geom::Geometry geom)
static

Returns a list containing a point from each Polygon, LineString, and Point found inside the specified geometry.

Thus, if the specified geometry is not a GeometryCollection, an empty list will be returned. The elements of the list are GeometryLocations.


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