gdal icon indicating copy to clipboard operation
gdal copied to clipboard

gdal2tiles.py not support input raster from source other than file

Open fechen123 opened this issue 3 years ago • 1 comments

Expected behavior and actual behavior.

The following is not working now with gdal2tiles.py:

gdal2tiles.py --zoom=2-5 /vsizip/tgr.zip/tgrgtf1.tif tiles gdal2tiles.py --zoom=2-5 geor:user/pwd,,grtab,grobj,id=0 tiles

gdal2tiles.py: error: The provided input file /vsizip/tgr.zip/tgrgtf1.tif does not exist or is not a file

Not sure it is a bug or it is designed this way. But other python scripts such as gdal_polygonize.py support all the data sources.

Steps to reproduce the problem.

  • create a zipfile with a tif file in it.
  • run the above command.

Operating system

Linux

GDAL version and provenance

This is tested on GDAL3.4.1

fechen123 avatar Nov 17 '22 18:11 fechen123

was about to report this with

gdal2tiles "vrt://gcore/data/float64.tif?ot=Byte&scale=true"  /vsimem/float

#gdal2tiles.py: error: The provided input file vrt://gcore/data/float64.tif?ot=Byte&scale=true does not exist or is not a file

GDAL 3.9.0dev-735e122955, released 2024/04/22

mdsumner avatar Apr 23 '24 01:04 mdsumner

has been fixed per 5c0b8d79ba47b7bb2c8e10ed2558a5e8bfeab89b . duplicate of #9808

rouault avatar May 26 '24 21:05 rouault