Skip to content

Commit e91e247

Browse files
committed
Use QgsOSMId type when it belongs (matches master version of file)
1 parent 5f10a0b commit e91e247

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

python/analysis/openstreetmap/qgsosmbase.sip

+6-6
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ struct QgsOSMElementID
88
enum Type { Invalid, Node, Way, Relation };
99

1010
Type type;
11-
qint64 id;
11+
QgsOSMId id;
1212
};
1313

1414

@@ -27,13 +27,13 @@ class QgsOSMElement
2727

2828
public:
2929
QgsOSMElement();
30-
QgsOSMElement( QgsOSMElementID::Type t, qint64 id );
30+
QgsOSMElement( QgsOSMElementID::Type t, QgsOSMId id );
3131

3232
bool isValid() const;
3333

3434
// fetched automatically from DB
3535
QgsOSMElementID elemID() const;
36-
qint64 id() const;
36+
QgsOSMId id() const;
3737
//QString username() const;
3838
//QDateTime timestamp() const;
3939
//int version() const;
@@ -55,7 +55,7 @@ class QgsOSMNode : QgsOSMElement
5555
%End
5656
public:
5757
QgsOSMNode();
58-
QgsOSMNode( qint64 id, const QgsPoint& point );
58+
QgsOSMNode( QgsOSMId id, const QgsPoint& point );
5959

6060
QgsPoint point() const;
6161

@@ -76,9 +76,9 @@ class QgsOSMWay : QgsOSMElement
7676
%End
7777
public:
7878
QgsOSMWay();
79-
QgsOSMWay( qint64 id, const QList<qint64>& nodes );
79+
QgsOSMWay( QgsOSMId id, const QList<QgsOSMId>& nodes );
8080

81-
QList<qint64> nodes() const;
81+
QList<QgsOSMId> nodes() const;
8282

8383
// fetched on-demand
8484
//QList<OSMElementID> relations() const;

0 commit comments

Comments
 (0)