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

Public Member Functions

 PointFeature (OGRFeature *feature)
 Construct a LineFeature with a feature which contains a LineString.
 
 PointFeature (OGRFeature *feature, OGRGeometry *ogrPoint)
 
double get_x ()
 
double get_y ()
 
double get_z ()
 
void set_vector (double x, double y, double z)
 
- 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

◆ PointFeature()

PointFeature::PointFeature ( OGRFeature *  feature,
OGRGeometry *  ogrPoint 
)

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

Member Function Documentation

◆ get_x()

double PointFeature::get_x ( )

Get the individual x, y and z components from the line point at the given index. The same can be accomplished with the get_line_point function, but this one works without special std types.


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