diff --git a/python/core/geometry/qgsabstractgeometryv2.sip b/python/core/geometry/qgsabstractgeometryv2.sip index 4e5e62cfd116..226442306d88 100644 --- a/python/core/geometry/qgsabstractgeometryv2.sip +++ b/python/core/geometry/qgsabstractgeometryv2.sip @@ -310,7 +310,7 @@ class QgsAbstractGeometryV2 E.g. QgsLineString -> QgsCompoundCurve, QgsPolygonV2 -> QgsCurvePolygon, QgsMultiLineString -> QgsMultiCurve, QgsMultiPolygonV2 -> QgsMultiSurface @return the converted geometry. Caller takes ownership*/ - virtual QgsAbstractGeometry* toCurveType() const /Factory/; + virtual QgsAbstractGeometryV2* toCurveType() const /Factory/; /** Returns approximate angle at a vertex. This is usually the average angle between adjacent * segments, and can be pictured as the orientation of a line following the curvature of the diff --git a/python/core/geometry/qgslinestringv2.sip b/python/core/geometry/qgslinestringv2.sip index a74d9ec64f78..319a811bd346 100644 --- a/python/core/geometry/qgslinestringv2.sip +++ b/python/core/geometry/qgslinestringv2.sip @@ -104,7 +104,7 @@ class QgsLineStringV2: public QgsCurveV2 /** Returns the geometry converted to the more generic curve type QgsCompoundCurve @return the converted geometry. Caller takes ownership*/ - QgsAbstractGeometry* toCurveType() const /Factory/; + QgsAbstractGeometryV2* toCurveType() const /Factory/; /** Returns a QPolygonF representing the line string. */ diff --git a/python/core/geometry/qgsmultilinestringv2.sip b/python/core/geometry/qgsmultilinestringv2.sip index 964524de357e..a3853cc10575 100644 --- a/python/core/geometry/qgsmultilinestringv2.sip +++ b/python/core/geometry/qgsmultilinestringv2.sip @@ -22,7 +22,7 @@ class QgsMultiLineStringV2: public QgsMultiCurveV2 /** Returns the geometry converted to the more generic curve type QgsMultiCurve @return the converted geometry. Caller takes ownership*/ - QgsAbstractGeometry* toCurveType() const /Factory/; + QgsAbstractGeometryV2* toCurveType() const /Factory/; protected: diff --git a/python/core/geometry/qgsmultipolygonv2.sip b/python/core/geometry/qgsmultipolygonv2.sip index f01f785e75d2..66d080f29248 100644 --- a/python/core/geometry/qgsmultipolygonv2.sip +++ b/python/core/geometry/qgsmultipolygonv2.sip @@ -22,7 +22,7 @@ class QgsMultiPolygonV2: public QgsMultiSurfaceV2 /** Returns the geometry converted to the more generic curve type QgsMultiSurface @return the converted geometry. Caller takes ownership*/ - QgsAbstractGeometry* toCurveType() const /Factory/; + QgsAbstractGeometryV2* toCurveType() const /Factory/; protected: diff --git a/python/core/geometry/qgspolygonv2.sip b/python/core/geometry/qgspolygonv2.sip index 8824c93ea473..7416804bdb55 100644 --- a/python/core/geometry/qgspolygonv2.sip +++ b/python/core/geometry/qgspolygonv2.sip @@ -28,7 +28,7 @@ class QgsPolygonV2: public QgsCurvePolygonV2 /** Returns the geometry converted to the more generic curve type QgsCurvePolygon @return the converted geometry. Caller takes ownership*/ - QgsAbstractGeometry* toCurveType() const /Factory/; + QgsAbstractGeometryV2* toCurveType() const /Factory/; void addInteriorRing( QgsCurveV2* ring /Transfer/ ); //overridden to handle LineString25D rings