I try to apply this answer :

Choose what zoomlevel to read from for mbtiles file in GDAL

to a gdal call from python (witout using os.system() / subprocess.call() ) but i can't find how i should add the "-oo ZOOM_LEVEL=12" GDAL Parameter to my code :

ds = gdal.Open('c:\data.mbtiles')
ds = gdal.Translate('c:\data.png', ds, format="PNG")

any advices ?

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.