QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
Public Member Functions | List of all members
QgsOSMElement Class Reference

Elements (also data primitives) are the basic components in OpenStreetMap from which everything else is defined. More...

#include <qgsosmbase.h>

Inheritance diagram for QgsOSMElement:
Inheritance graph
[legend]

Public Member Functions

 QgsOSMElement ()
 
 QgsOSMElement (QgsOSMElementID::Type t, QgsOSMId id)
 
QgsOSMElementID elemID () const
 
QgsOSMId id () const
 
bool isValid () const
 

Detailed Description

Elements (also data primitives) are the basic components in OpenStreetMap from which everything else is defined.

These consist of Nodes (which define a point in space), Ways (which define a linear features and areas), and Relations - with an optional role - which are sometimes used to define the relation between other elements. All of the above can have one of more associated tags.

Definition at line 43 of file qgsosmbase.h.

Constructor & Destructor Documentation

◆ QgsOSMElement() [1/2]

QgsOSMElement::QgsOSMElement ( )
inline

Definition at line 46 of file qgsosmbase.h.

◆ QgsOSMElement() [2/2]

QgsOSMElement::QgsOSMElement ( QgsOSMElementID::Type  t,
QgsOSMId  id 
)
inline

Definition at line 47 of file qgsosmbase.h.

Member Function Documentation

◆ elemID()

QgsOSMElementID QgsOSMElement::elemID ( ) const
inline

Definition at line 52 of file qgsosmbase.h.

◆ id()

QgsOSMId QgsOSMElement::id ( ) const
inline

Definition at line 53 of file qgsosmbase.h.

◆ isValid()

bool QgsOSMElement::isValid ( ) const
inline

Definition at line 49 of file qgsosmbase.h.


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