QGIS API Documentation  2.12.0-Lyon
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)
 
QgsOSMDatabasedatabase () const
 
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 82 of file qgsosmbase.h.

Constructor & Destructor Documentation

QgsOSMWay::QgsOSMWay ( )
inline

Definition at line 85 of file qgsosmbase.h.

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

Definition at line 86 of file qgsosmbase.h.

Member Function Documentation

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

Definition at line 88 of file qgsosmbase.h.


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