I am trying to do the following but it is falling over i.e. (has no error message and doesnt start the tiling process). I think the parsing of the zoom level argument is falling over. I havent been able to parse the zoom level
NB. the vrtName variable contains the zoomLevel as string "0-5", "5-10", or "10-18" which was taken from the vrt names 0-5.vrt, 5-10.vrt and 10-18.vrt
data = vrtName.split("-") minZoomLevel = data maxZoomLevel = data print("gdal2tiles tiling process started.....") os.system('python "C:\Program Files\GDAL\gdal2tiles.py" -p geodetic -z ' + str(minZoomLevel) + '-' + str(maxZoomLevel) + ' C:/Marine/mosaic_tif/' + vrtName + '.tif ' + outputFolder + clientName + str(n)) n = n + 1
Is it possible to change the zoom level parameter dynamically in a gdal2tiles call within python?