Open paulovieira opened 1 year ago
Got the same error, but with own raster-data.
Output:
Traceback (most recent call last):
File "/usr/local/bin/gdal2mbtiles", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.9/dist-packages/gdal2mbtiles/main.py", line 297, in main
warp_mbtiles(inputfile=inputfile.name, outputfile=outputfile.name,
File "/usr/local/lib/python3.9/dist-packages/gdal2mbtiles/helpers.py", line 203, in warp_mbtiles
return image_mbtiles(inputfile=warped, outputfile=outputfile,
File "/usr/local/lib/python3.9/dist-packages/gdal2mbtiles/helpers.py", line 73, in image_mbtiles
pyramid = preprocessor(**locals())
File "/usr/local/lib/python3.9/dist-packages/gdal2mbtiles/helpers.py", line 322, in resample_after_warp
pyramid.dataset.resample_to_world()
File "/usr/local/lib/python3.9/dist-packages/gdal2mbtiles/vips.py", line 601, in resample_to_world
result = self._resample(ratios=ratios)
File "/usr/local/lib/python3.9/dist-packages/gdal2mbtiles/vips.py", line 570, in _resample
self._image = VImageAdapter(self.image).stretch(
File "/usr/local/lib/python3.9/dist-packages/gdal2mbtiles/vips.py", line 377, in stretch
raise ValueError(
ValueError: yscale 0.3478704038449042 cannot be less than 1.0
Installed
gdal2mbtiles
in a virtual environment. Tried to use it with this raster from https://www.naturalearthdata.com:https://www.naturalearthdata.com/downloads/10m-gray-earth/gray-earth-with-shaded-relief-and-water/
Direct link for the raster: https://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/raster/GRAY_LR_SR_W.zip
Got this error:
Full output:
I'm using gdal 3.4.1.