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 agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.