QGIS API Documentation  2.6.0-Brighton
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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)
bool isValid () const
QgsOSMDatabasedatabase () const
QgsOSMElementID elemID () const
QgsOSMId id () 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.

Constructor & Destructor Documentation

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

Member Function Documentation

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

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