|
enum | GeometryType { NONE
, POINT
, LINE
, POLYGON
} |
|
|
| Feature (OGRFeature *feature) |
| Construct a Feature from an OGRFeature from GDAL, taking ownership of the OGRFeature object.
|
|
| Feature (OGRFeature *feature, const OGRGeometry *geometry) |
|
std::map< std::string, std::string > | get_attributes () |
| Return a map with all attribute names -> values.
|
|
const char * | get_attribute (const char *name) |
|
void | set_attribute (const char *name, const char *value) |
|
int | get_id () const |
|
bool | intersects_with (std::shared_ptr< Feature > other) const |
|
|
GeometryType | geometry_type = NONE |
|
bool | is_deleted = false |
|
OGRFeature * | feature |
|
◆ Feature()
Feature::Feature |
( |
OGRFeature * |
feature, |
|
|
const OGRGeometry * |
geometry |
|
) |
| |
Construct a Feature with a feature that can contain any geometry - it is not accessed, the geometry is given as a separate OGRGeometry parameter instead. Used for GeometryCollections (MultiPoint, MultiLineString, ...)
◆ get_attribute()
const char * Feature::get_attribute |
( |
const char * |
name | ) |
|
Return the value of the attribute with the given name. A field with the given name must exist.
The documentation for this class was generated from the following files:
- /github/workspace/src/vector-extractor/Feature.h
- /github/workspace/src/vector-extractor/Feature.cpp