@@ -19,13 +19,13 @@ typedef QVector<QgsPointXY> QgsPolylineXY;
1919
2020typedef QVector<QgsPoint> QgsPolyline;
2121
22- typedef QVector<QVector<QgsPointXY>> QgsPolygon ;
22+ typedef QVector<QVector<QgsPointXY>> QgsPolygonXY ;
2323
24- typedef QVector<QgsPointXY> QgsMultiPoint ;
24+ typedef QVector<QgsPointXY> QgsMultiPointXY ;
2525
26- typedef QVector<QVector<QgsPointXY>> QgsMultiPolyline ;
26+ typedef QVector<QVector<QgsPointXY>> QgsMultiPolylineXY ;
2727
28- typedef QVector<QVector<QVector<QgsPointXY>>> QgsMultiPolygon ;
28+ typedef QVector<QVector<QVector<QgsPointXY>>> QgsMultiPolygonXY ;
2929
3030
3131
@@ -145,14 +145,14 @@ Copy constructor will prompt a deep copy of the object
145145Creates a new geometry from a WKT string
146146 :rtype: QgsGeometry
147147%End
148- static QgsGeometry fromPoint ( const QgsPointXY &point );
148+ static QgsGeometry fromPointXY ( const QgsPointXY &point );
149149%Docstring
150150Creates a new geometry from a QgsPointXY object
151151 :rtype: QgsGeometry
152152%End
153- static QgsGeometry fromMultiPoint ( const QgsMultiPoint &multipoint );
153+ static QgsGeometry fromMultiPointXY ( const QgsMultiPointXY &multipoint );
154154%Docstring
155- Creates a new geometry from a QgsMultiPoint object
155+ Creates a new geometry from a QgsMultiPointXY object
156156 :rtype: QgsGeometry
157157%End
158158
@@ -184,17 +184,17 @@ Creates a new geometry from a QgsMultiPoint object
184184 :rtype: QgsGeometry
185185%End
186186
187- static QgsGeometry fromMultiPolyline ( const QgsMultiPolyline &multiline );
187+ static QgsGeometry fromMultiPolylineXY ( const QgsMultiPolylineXY &multiline );
188188%Docstring
189- Creates a new geometry from a QgsMultiPolyline object
189+ Creates a new geometry from a QgsMultiPolylineXY object
190190 :rtype: QgsGeometry
191191%End
192- static QgsGeometry fromPolygon ( const QgsPolygon &polygon );
192+ static QgsGeometry fromPolygonXY ( const QgsPolygonXY &polygon );
193193%Docstring
194194Creates a new geometry from a QgsPolygon
195195 :rtype: QgsGeometry
196196%End
197- static QgsGeometry fromMultiPolygon ( const QgsMultiPolygon &multipoly );
197+ static QgsGeometry fromMultiPolygonXY ( const QgsMultiPolygonXY &multipoly );
198198%Docstring
199199Creates a new geometry from a QgsMultiPolygon
200200 :rtype: QgsGeometry
@@ -519,7 +519,7 @@ Returns true if WKB of the geometry is of WKBMulti* type
519519 :rtype: OperationResult
520520%End
521521
522- OperationResult addPart( const QList<QgsPointXY> &points, QgsWkbTypes::GeometryType geomType = QgsWkbTypes::UnknownGeometry ) /PyName=addPoints /;
522+ OperationResult addPart( const QList<QgsPointXY> &points, QgsWkbTypes::GeometryType geomType = QgsWkbTypes::UnknownGeometry ) /PyName=addPointsXY /;
523523%Docstring
524524 Adds a new part to a the geometry.
525525 \param points points describing part to add
@@ -528,7 +528,7 @@ Returns true if WKB of the geometry is of WKBMulti* type
528528 :rtype: OperationResult
529529%End
530530
531- OperationResult addPart( const QgsPointSequence &points, QgsWkbTypes::GeometryType geomType = QgsWkbTypes::UnknownGeometry ) /PyName=addPointsV2 /;
531+ OperationResult addPart( const QgsPointSequence &points, QgsWkbTypes::GeometryType geomType = QgsWkbTypes::UnknownGeometry ) /PyName=addPoints /;
532532%Docstring
533533 Adds a new part to a the geometry.
534534 \param points points describing part to add
@@ -1144,32 +1144,32 @@ Returns an extruded version of this geometry.
11441144 :rtype: QgsPolylineXY
11451145%End
11461146
1147- QgsPolygon asPolygon() const;
1147+ QgsPolygonXY asPolygon() const;
11481148%Docstring
11491149 Returns contents of the geometry as a polygon
11501150 if wkbType is WKBPolygon, otherwise an empty list
1151- :rtype: QgsPolygon
1151+ :rtype: QgsPolygonXY
11521152%End
11531153
1154- QgsMultiPoint asMultiPoint() const;
1154+ QgsMultiPointXY asMultiPoint() const;
11551155%Docstring
11561156 Returns contents of the geometry as a multi point
11571157 if wkbType is WKBMultiPoint, otherwise an empty list
1158- :rtype: QgsMultiPoint
1158+ :rtype: QgsMultiPointXY
11591159%End
11601160
1161- QgsMultiPolyline asMultiPolyline() const;
1161+ QgsMultiPolylineXY asMultiPolyline() const;
11621162%Docstring
11631163 Returns contents of the geometry as a multi linestring
11641164 if wkbType is WKBMultiLineString, otherwise an empty list
1165- :rtype: QgsMultiPolyline
1165+ :rtype: QgsMultiPolylineXY
11661166%End
11671167
1168- QgsMultiPolygon asMultiPolygon() const;
1168+ QgsMultiPolygonXY asMultiPolygon() const;
11691169%Docstring
11701170 Returns contents of the geometry as a multi polygon
11711171 if wkbType is WKBMultiPolygon, otherwise an empty list
1172- :rtype: QgsMultiPolygon
1172+ :rtype: QgsMultiPolygonXY
11731173%End
11741174
11751175 QList<QgsGeometry> asGeometryCollection() const;
@@ -1430,20 +1430,20 @@ Returns an extruded version of this geometry.
14301430 :rtype: QgsPolylineXY
14311431%End
14321432
1433- static QgsPolygon createPolygonFromQPolygonF( const QPolygonF &polygon ) /Factory/;
1433+ static QgsPolygonXY createPolygonFromQPolygonF( const QPolygonF &polygon ) /Factory/;
14341434%Docstring
1435- Creates a QgsPolygon from a QPolygonF.
1435+ Creates a QgsPolygonXYfrom a QPolygonF.
14361436 \param polygon source polygon
14371437 :return: QgsPolygon
14381438.. seealso:: createPolylineFromQPolygonF
1439- :rtype: QgsPolygon
1439+ :rtype: QgsPolygonXY
14401440%End
14411441
14421442
14431443 static bool compare( PyObject *obj1, PyObject *obj2, double epsilon = 4 * DBL_EPSILON );
14441444%Docstring
14451445 Compares two geometry objects for equality within a specified tolerance.
1446- The objects can be of type QgsPolylineXY, QgsPolygon or QgsMultiPolygon.
1446+ The objects can be of type QgsPolylineXY, QgsPolygonXYor QgsMultiPolygon.
14471447 The 2 types should match.
14481448 \param p1 first geometry object
14491449 \param p2 second geometry object
@@ -1507,10 +1507,10 @@ Returns an extruded version of this geometry.
15071507 sipCanConvertToType( a0, sipType_QVector_0600QVector_0100QgsPointXY, SIP_NOT_NONE ) &&
15081508 sipCanConvertToType( a1, sipType_QVector_0600QVector_0100QgsPointXY, SIP_NOT_NONE ) )
15091509 {
1510- QgsPolygon *p0;
1511- QgsPolygon *p1;
1512- p0 = reinterpret_cast<QgsPolygon *>( sipConvertToType( a0, sipType_QVector_0600QVector_0100QgsPointXY, 0, SIP_NOT_NONE, &state0, &sipIsErr ) );
1513- p1 = reinterpret_cast<QgsPolygon *>( sipConvertToType( a1, sipType_QVector_0600QVector_0100QgsPointXY, 0, SIP_NOT_NONE, &state1, &sipIsErr ) );
1510+ QgsPolygonXY *p0;
1511+ QgsPolygonXY *p1;
1512+ p0 = reinterpret_cast<QgsPolygonXY *>( sipConvertToType( a0, sipType_QVector_0600QVector_0100QgsPointXY, 0, SIP_NOT_NONE, &state0, &sipIsErr ) );
1513+ p1 = reinterpret_cast<QgsPolygonXY *>( sipConvertToType( a1, sipType_QVector_0600QVector_0100QgsPointXY, 0, SIP_NOT_NONE, &state1, &sipIsErr ) );
15141514 if ( sipIsErr )
15151515 {
15161516 sipReleaseType( p0, sipType_QVector_0600QVector_0100QgsPointXY, state0 );
@@ -1534,10 +1534,10 @@ Returns an extruded version of this geometry.
15341534 sipCanConvertToType( a0, sipType_QVector_0600QVector_0600QVector_0100QgsPointXY, SIP_NOT_NONE ) &&
15351535 sipCanConvertToType( a1, sipType_QVector_0600QVector_0600QVector_0100QgsPointXY, SIP_NOT_NONE ) )
15361536 {
1537- QgsMultiPolygon *p0;
1538- QgsMultiPolygon *p1;
1539- p0 = reinterpret_cast<QgsMultiPolygon *>( sipConvertToType( a0, sipType_QVector_0600QVector_0600QVector_0100QgsPointXY, 0, SIP_NOT_NONE, &state0, &sipIsErr ) );
1540- p1 = reinterpret_cast<QgsMultiPolygon *>( sipConvertToType( a1, sipType_QVector_0600QVector_0600QVector_0100QgsPointXY, 0, SIP_NOT_NONE, &state1, &sipIsErr ) );
1537+ QgsMultiPolygonXY *p0;
1538+ QgsMultiPolygonXY *p1;
1539+ p0 = reinterpret_cast<QgsMultiPolygonXY *>( sipConvertToType( a0, sipType_QVector_0600QVector_0600QVector_0100QgsPointXY, 0, SIP_NOT_NONE, &state0, &sipIsErr ) );
1540+ p1 = reinterpret_cast<QgsMultiPolygonXY *>( sipConvertToType( a1, sipType_QVector_0600QVector_0600QVector_0100QgsPointXY, 0, SIP_NOT_NONE, &state1, &sipIsErr ) );
15411541 if ( sipIsErr )
15421542 {
15431543 sipReleaseType( p0, sipType_QVector_0600QVector_0600QVector_0100QgsPointXY, state0 );
@@ -1581,16 +1581,16 @@ Returns an extruded version of this geometry.
15811581
15821582 static void convertPointList( const QList<QgsPointXY> &input, QgsPointSequence &output );
15831583%Docstring
1584- Upgrades a point list from QgsPointXY to QgsPointV2
1584+ Upgrades a point list from QgsPointXY to QgsPoint
15851585 \param input list of QgsPointXY objects to be upgraded
1586- \param output destination for list of points converted to QgsPointV2
1586+ \param output destination for list of points converted to QgsPoint
15871587%End
15881588
15891589 static void convertPointList( const QgsPointSequence &input, QList<QgsPointXY> &output );
15901590%Docstring
1591- Downgrades a point list from QgsPoint to QgsPoint
1591+ Downgrades a point list from QgsPoint to QgsPointXY
15921592 \param input list of QgsPoint objects to be downgraded
1593- \param output destination for list of points converted to QgsPoint
1593+ \param output destination for list of points converted to QgsPointXY
15941594%End
15951595
15961596 operator QVariant() const;
0 commit comments