Skip to content

Commit

Permalink
More drop V2 suffix fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Oct 30, 2017
1 parent 271ef7c commit 750a54f
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/qgis/GeometryConvert.py
Expand Up @@ -27,10 +27,10 @@

from qgis.core import (QgsFeature,
QgsGeometry,
QgsMultiPointV2,
QgsMultiPoint,
QgsMultiLineString,
QgsLineString,
QgsPolygonV2,
QgsPolygon,
QgsFeatureSink,
QgsWkbTypes,
QgsProcessingException,
Expand Down
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/qgis/LinesToPolygons.py
Expand Up @@ -32,8 +32,8 @@
from qgis.core import (QgsFeature,
QgsGeometry,
QgsGeometryCollection,
QgsPolygonV2,
QgsMultiPolygonV2,
QgsPolygon,
QgsMultiPolygon,
QgsMultiSurface,
QgsWkbTypes,
QgsFeatureSink,
Expand Down
Expand Up @@ -46,7 +46,7 @@
QgsProcessing,
QgsFeature,
QgsVertexId,
QgsMultiPointV2)
QgsMultiPoint)

from processing.algs.qgis.QgisAlgorithm import QgisAlgorithm

Expand Down
2 changes: 1 addition & 1 deletion tests/src/core/testqgsgeometry.cpp
Expand Up @@ -85,7 +85,7 @@ class TestQgsGeometry : public QObject
void point(); //test QgsPointV2
void lineString(); //test QgsLineString
void circularString();
void polygon(); //test QgsPolygonV2
void polygon(); //test QgsPolygon
void curvePolygon();
void triangle();
void circle();
Expand Down
12 changes: 6 additions & 6 deletions tests/src/python/test_qgsgeometry.py
Expand Up @@ -29,10 +29,10 @@
QgsLineString,
QgsMultiCurve,
QgsMultiLineString,
QgsMultiPointV2,
QgsMultiPolygonV2,
QgsMultiPoint,
QgsMultiPolygon,
QgsMultiSurface,
QgsPolygonV2,
QgsPolygon,
QgsCoordinateTransform,
QgsRectangle,
QgsWkbTypes,
Expand Down Expand Up @@ -1947,11 +1947,11 @@ def testTypeInformation(self):
(QgsLineString, "LineString", QgsWkbTypes.LineString),
(QgsMultiCurve, "MultiCurve", QgsWkbTypes.MultiCurve),
(QgsMultiLineString, "MultiLineString", QgsWkbTypes.MultiLineString),
(QgsMultiPointV2, "MultiPoint", QgsWkbTypes.MultiPoint),
(QgsMultiPolygonV2, "MultiPolygon", QgsWkbTypes.MultiPolygon),
(QgsMultiPoint, "MultiPoint", QgsWkbTypes.MultiPoint),
(QgsMultiPolygon, "MultiPolygon", QgsWkbTypes.MultiPolygon),
(QgsMultiSurface, "MultiSurface", QgsWkbTypes.MultiSurface),
(QgsPoint, "Point", QgsWkbTypes.Point),
(QgsPolygonV2, "Polygon", QgsWkbTypes.Polygon),
(QgsPolygon, "Polygon", QgsWkbTypes.Polygon),
]

for geomtype in types:
Expand Down

0 comments on commit 750a54f

Please sign in to comment.