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

A way is an ordered list of nodes which normally also has at least one tag or is included within a Relation. More...

#include <qgsosmbase.h>

Inheritance diagram for QgsOSMWay:
Inheritance graph
[legend]

Public Member Functions

 QgsOSMWay ()
 
 QgsOSMWay (QgsOSMId id, const QList< QgsOSMId > &nodes)
 
QList< QgsOSMIdnodes () const
 
- Public Member Functions inherited from QgsOSMElement
 QgsOSMElement ()
 
 QgsOSMElement (QgsOSMElementID::Type t, QgsOSMId id)
 
QgsOSMElementID elemID () const
 
QgsOSMId id () const
 
bool isValid () const
 

Detailed Description

A way is an ordered list of nodes which normally also has at least one tag or is included within a Relation.

A way can have between 2 and 2,000 nodes, although it's possible that faulty ways with zero or a single node exist. A way can be open or closed. A closed way is one whose last node on the way is also the first on that way. A closed way may be interpreted either as a closed polyline, or an area, or both.

Definition at line 93 of file qgsosmbase.h.

Constructor & Destructor Documentation

◆ QgsOSMWay() [1/2]

QgsOSMWay::QgsOSMWay ( )
inline

Definition at line 96 of file qgsosmbase.h.

◆ QgsOSMWay() [2/2]

QgsOSMWay::QgsOSMWay ( QgsOSMId  id,
const QList< QgsOSMId > &  nodes 
)
inline

Definition at line 97 of file qgsosmbase.h.

Member Function Documentation

◆ nodes()

QList<QgsOSMId> QgsOSMWay::nodes ( ) const
inline

Definition at line 102 of file qgsosmbase.h.


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