Geodot Plugin
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
Feature Class Reference
Inheritance diagram for Feature:
LineFeature PointFeature PolygonFeature

Public Types

enum  GeometryType { NONE , POINT , LINE , POLYGON }
 

Public Member Functions

 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
 

Public Attributes

GeometryType geometry_type = NONE
 
bool is_deleted = false
 
OGRFeature * feature
 

Constructor & Destructor Documentation

◆ 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, ...)

Member Function Documentation

◆ 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: