-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Raster Tools > Generate XYZ tiles (MBTiles) - problems in 3.34.1 (new problems since 3.28.12) #55489
Comments
@caver456, thanks for reporting. Since the issue report's title mentions QGIS 3.28.12 while in the issue report description is reported that the affected version is QGIS 3.34, could you please better specify which version exactly is affected by the issue and, if the case, change the issue report title accordingly? |
All of the reported issues still happen in the new profile, including the long runtime (based on 6 minutes of runtime so far, with the progress bar still at 0% and file size at 120MB out of an expected 6GB) and rapid-directory-listing-updates in the Windows file navigator. |
Also of note, the new version no longer generates a line in the log when it starts processing each zoom level - even if the log level is set to Verbose in the MBTiles dialog, in Advanced --> Alogorithm Settings. If it's possible to bring those log lines back, I felt they were helpful as a confirmation of progress with a bit more detail than the progress bar. |
The resulting mbtiles file generated with 3.34.1 is about 2.5x as big as the one generated with 3.28.12. (5.72GB vs 2.41GB) Since some of the tiles were generated with opaque black background in 3.28.12 (#50170) the file size difference might not be relevant until really digging in to see exactly what tiles exist in each file. |
I think what's happening is It creates JPG tiles even if you pick PNG, leading to larger mbtiles files and no background transparency. |
The 3.34.1-rendered 5.7GB mbtiles metadata says it's png, as viewed in 'DB
Browser for SQLite' for Windows, and the tiles do have the correct
transparency (I view them in CalTopo Desktop).
[image: image.png]
The smaller-but-buggy 3.28.12-rendered 2.4GB mbtiles metadata also shows
png. The bounds are the same between the two versions, but are rounded to
fewer significant figures in 3.34.1 above. 3.28.12:
[image: image.png]
Spot-checking a couple of the same tiles between the two versions, yes they
are bigger in 3.34.1 (14.37kB vs 12.04kB for example). Curious...
antialiasing was off and the quality was the same in both renderings (75%).
…On Wed, Dec 6, 2023 at 2:03 PM Tobin Bradley ***@***.***> wrote:
I think what's happening is It creates JPG tiles even if you pick PNG,
leading to larger mbtiles files and no background transparency.
—
Reply to this email directly, view it on GitHub
<#55489 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEPCEZVDHUHPEHPAG25OHOTYIDTSTAVCNFSM6AAAAABAEG77N6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBTG43DCOBSG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
The warning is displayed by mistake. I've fixed it with PR #55573 (3.34 #55575). I suppose the issue 3. is due to the fact that in the old Python version of the algorithm the "journal_mode=WAL" is used which drastically reduces the disk access and enables "faster sqlite processing for parallel access" QGIS/python/plugins/processing/algs/qgis/TilesXYZ.py Lines 363 to 364 in 58aa7b8
|
Thank you! Interesting that WAL seems to give such a speedup. Any chance that could be restored? |
What is the bug or the crash?
(none of these issues existed in LTR 3.28.12 - I believe they were introduced during fixes for #50170 - however, thanks very much for fixing that core issue!)
"2023-12-02T05:50:01 CRITICAL Failed to create MBTiles file C:/......."
(choosing a new filename allows the run to proceed)
Here's the generate tiles log output from the failed run in #2, which also shows #1:
Steps to reproduce the issue
Any dataset: Processing Toolbox --> Raster Tools --> Generate XYZ tiles (MBTiles)
Versions
QGIS version
3.34.1-Prizren
QGIS code revision
1339274
Qt version
5.15.3
Python version
3.9.5
GDAL/OGR version
3.8.0
PROJ version
9.3.0
EPSG Registry database version
v10.094 (2023-08-08)
GEOS version
3.12.1-CAPI-1.18.1
SQLite version
3.41.1
PDAL version
2.6.0
PostgreSQL client version
15.2
SpatiaLite version
5.1.0
QWT version
6.1.6
QScintilla2 version
2.13.4
OS version
Windows 10 Version 2009
Active Python plugins
qtiles
1.7.2
QuickOSM
2.2.3
db_manager
0.1.20
grassprovider
2.12.99
MetaSearch
0.3.6
processing
2.12.99
(none of these issues existed in LTR 3.28.12)
Supported QGIS version
New profile
Additional context
The text was updated successfully, but these errors were encountered: