Skip to content

Commit

Permalink
Update python/plugins/processing/algs/qgis/TilesXYZ.py
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Apr 24, 2023
1 parent 3d6e1e5 commit 618c525
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/qgis/TilesXYZ.py
Expand Up @@ -244,8 +244,8 @@ def generate(self, writer, parameters, context, feedback):
# Transform extent to match project CRS
extent_original = self.parameterAsExtent(parameters, self.EXTENT, context)
extent_crs = self.parameterAsExtentCrs(parameters, self.EXTENT, context)
self.extentCrsToProjectCrs = QgsCoordinateTransform(extent_crs, project.crs(), context.transformContext())
extent = self.extentCrsToProjectCrs.transformBoundingBox(extent_original)
extent_crs_to_project_crs = QgsCoordinateTransform(extent_crs, project.crs(), context.transformContext())
extent = extent_crs_to_project_crs.transformBoundingBox(extent_original)

self.min_zoom = self.parameterAsInt(parameters, self.ZOOM_MIN, context)
self.max_zoom = self.parameterAsInt(parameters, self.ZOOM_MAX, context)
Expand Down

0 comments on commit 618c525

Please sign in to comment.