Skip to content

Commit 28678e1

Browse files
committed
Fix: Geotiff export issue
1 parent 7798576 commit 28678e1

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

CustomMapDownloader.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import sqlite3
1212
import tempfile
1313

14-
from qgis.PyQt.QtCore import QSettings, QTranslator, QCoreApplication, QSize, Qt, QEventLoop
14+
from qgis.PyQt.QtCore import QSettings, QTranslator, QCoreApplication, QSize, Qt
1515
from qgis.PyQt.QtGui import QIcon, QImage, QPainter, QColor
1616
from qgis.PyQt.QtWidgets import QAction, QMessageBox, QProgressDialog
1717
from qgis.core import (
@@ -270,10 +270,7 @@ def _prog(val, text):
270270
ms.setDestinationCrs(crs_dest)
271271

272272
render = QgsMapRendererParallelJob(ms)
273-
loop = QEventLoop()
274-
render.renderingComplete.connect(loop.quit)
275273
render.start()
276-
loop.exec_()
277274
render.waitForFinished()
278275
_prog(70, "Writing output file...")
279276
rendered = render.renderedImage()

metadata.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
name=MapDownloader
77
qgisMinimumVersion=3.0
88
description=Download georeferenced maps from any layer as GeoTIFF or MBTiles; supports bbox/center extents, zoom range or single-shot, neighbour padding, live estimates, and determinate progress
9-
version=0.2.0
9+
version=0.2.1
1010
author=Abhinav Jayswal
1111
email=abhinavjayaswal10@gmail.com
1212

@@ -20,6 +20,7 @@ repository=https://github.com/ashroo/custom_map_downloader
2020

2121
hasProcessingProvider=no
2222
changelog=
23+
0.2.1 - Bugfix: Fixed GeoTIFF export rendering (removed incorrect QEventLoop usage with QgsMapRendererParallelJob).
2324
0.2.0 - Major update: Added MBTiles export with neighbour padding (0–5 rings), auto-detect minimum visible zoom, live tile count + size estimate UI, determinate progress bars with %% for both GeoTIFF and MBTiles, improved QEventLoop rendering, and expanded metadata description.
2425
0.1.3 - Added MBTiles export with configurable extent (center+radius or bounding box), zoom range, single-shot mode; dynamic format-switching UI.
2526
0.1.2 - Added CRS selection with 30+ EPSG codes; Fixed extent calculation for geographic vs projected CRS.

0 commit comments

Comments
 (0)