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

Public Member Functions

 PolygonFeature (OGRFeature *feature)
 Construct a PolygonFeature with a feature which contains a Polygon.
 
 PolygonFeature (OGRFeature *feature, OGRGeometry *ogrPolygon)
 
std::list< std::vector< double > > get_outer_vertices ()
 Get the vertices of the base shape.
 
void set_outer_vertices (std::list< std::vector< double > > vertices)
 Replace the outer vertices with new geometry (holes, if any, are left unchanged)
 
std::list< std::list< std::vector< double > > > get_holes ()
 Get all cutout shapes.
 
- Public Member Functions inherited from Feature
 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
 

Additional Inherited Members

- Public Types inherited from Feature
enum  GeometryType { NONE , POINT , LINE , POLYGON }
 
- Public Attributes inherited from Feature
GeometryType geometry_type = NONE
 
bool is_deleted = false
 
OGRFeature * feature
 

Constructor & Destructor Documentation

◆ PolygonFeature()

PolygonFeature::PolygonFeature ( OGRFeature *  feature,
OGRGeometry *  ogrPolygon 
)

Construct a PolygonFeature with a feature that can contain any geometry (usually used for MultiPolygons) - it is not accessed, the geometry is given as a separate PolygonFeature parameter instead.


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