Closed rmanhaeve closed 7 months ago
Hi. Thanks for the bug report. Can you please attach/provide a link to the various tif files you used to reproduce the issue?
Here you go: lambert.tif 3857.tif
The issue is due to the fact the projection used results in a "non rectangular" (there's probably a better denomination) area:
gdalinfo ~/Downloads/lambert.tif | grep Left
Upper Left ( 323891.029, 1030258.886) ( 0d35'44.32"W, 53d58'42.19"N)
Lower Left ( 323891.029, 353998.886) ( 0d 0'25.44"E, 47d54'50.38"N)
Most of pyhgtmap internals make the strong assumption the area is rectangular, which I won't change. I'll add a check to detect such input and fail with an error instead.
Ok, thanks for looking into it!
Hi
I tried generating contours from a geotiff file that had a Lambert2008 projection. They are wrong however, and do not match up with the ones (correctly) generated from the same geotiff in EPSG:3857. I've included a screenshot from QGIS showing OSM tiles, with the Lambert2008 geotiff on top. The pink contours are generated by pyhgtmap from the Lambert2008 tiff file, with the brown ones generated from the EPSG:3857 geotiff file.
Here's the listgeo output of that Lambert2008 geotiff file: