Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Jun 2, 2017
1 parent 085a284 commit e3efc2c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/qgis/GridLine.py
Expand Up @@ -35,7 +35,7 @@
QgsField,
QgsFeature,
QgsGeometry,
QgsPointXY,
QgsPoint,
QgsLineString,
QgsWkbTypes,
QgsFields)
Expand Down
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/qgis/PointsLayerFromTable.py
Expand Up @@ -27,7 +27,7 @@

from qgis.core import (QgsApplication,
QgsWkbTypes,
QgsPointXY,
QgsPoint,
QgsCoordinateReferenceSystem,
QgsGeometry,
QgsProcessingUtils)
Expand Down Expand Up @@ -120,7 +120,7 @@ def processAlgorithm(self, context, feedback):
x = float(attrs[x_field_index])
y = float(attrs[y_field_index])

point = QgsPointXY(x, y)
point = QgsPoint(x, y)

if z_field_index is not None:
try:
Expand Down
2 changes: 1 addition & 1 deletion tests/src/python/test_qgsrectangle.py
Expand Up @@ -14,7 +14,7 @@

import qgis # NOQA

from qgis.core import QgsRectangle, QgsPoint
from qgis.core import QgsRectangle, QgsPointXY

from qgis.testing import start_app, unittest
from utilities import compareWkt
Expand Down

0 comments on commit e3efc2c

Please sign in to comment.