Skip to content
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

Cannot add a remote PMTile #57041

Closed
frafra opened this issue Apr 4, 2024 · 3 comments
Closed

Cannot add a remote PMTile #57041

frafra opened this issue Apr 4, 2024 · 3 comments

Comments

@frafra
Copy link

frafra commented Apr 4, 2024

Feature description

I tried to add a PMTile file available over HTTP, but it does not seem possible in QGIS, since it says that the source is invalid or not recognized. Opening a remote GPKG works as expected.

Additional context

I tried to add the layer manually, using the Python console, without success:

v = QgsVectorLayer("/vsicurl/https://pycsw.nina.no/media/maps/sources/30/02_Fritidsbebyggelse.pmtiles", "layer", "ogr")
QgsProject.instance().addMapLayer(v)

I also wonder if there is a simpler way to open generic gdal/ogr resources, by taking advantage of the wide range of supported formats as well as VFS.

@NyakudyaA
Copy link
Contributor

From the gdal documentation it looks like you need gdal >3.8 for this
https://gdal.org/drivers/vector/pmtiles.html

Please check what gdal version you are running qgis with

@frafra
Copy link
Author

frafra commented Apr 5, 2024

You are right indeed :)

@frafra frafra closed this as completed Apr 5, 2024
@four43
Copy link

four43 commented Dec 20, 2024

Using QGIS 3.38.3 and GDAL 3.9.2 this does not work well for me given @frafra 's example. QGIS doesn't complain but it's working very hard on a seemingly small problem...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants