Skip to content

Commit

Permalink
Use QgsOSMId type when it belongs (matches master version of file)
Browse files Browse the repository at this point in the history
  • Loading branch information
strk committed Jun 10, 2017
1 parent 5f10a0b commit e91e247
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions python/analysis/openstreetmap/qgsosmbase.sip
Expand Up @@ -8,7 +8,7 @@ struct QgsOSMElementID
enum Type { Invalid, Node, Way, Relation };

Type type;
qint64 id;
QgsOSMId id;
};


Expand All @@ -27,13 +27,13 @@ class QgsOSMElement

public:
QgsOSMElement();
QgsOSMElement( QgsOSMElementID::Type t, qint64 id );
QgsOSMElement( QgsOSMElementID::Type t, QgsOSMId id );

bool isValid() const;

// fetched automatically from DB
QgsOSMElementID elemID() const;
qint64 id() const;
QgsOSMId id() const;
//QString username() const;
//QDateTime timestamp() const;
//int version() const;
Expand All @@ -55,7 +55,7 @@ class QgsOSMNode : QgsOSMElement
%End
public:
QgsOSMNode();
QgsOSMNode( qint64 id, const QgsPoint& point );
QgsOSMNode( QgsOSMId id, const QgsPoint& point );

QgsPoint point() const;

Expand All @@ -76,9 +76,9 @@ class QgsOSMWay : QgsOSMElement
%End
public:
QgsOSMWay();
QgsOSMWay( qint64 id, const QList<qint64>& nodes );
QgsOSMWay( QgsOSMId id, const QList<QgsOSMId>& nodes );

QList<qint64> nodes() const;
QList<QgsOSMId> nodes() const;

// fetched on-demand
//QList<OSMElementID> relations() const;
Expand Down

0 comments on commit e91e247

Please sign in to comment.