heremaps / tin-terrain

A command-line tool for converting heightmaps in GeoTIFF format into tiled optimized meshes.
MIT License
579 stars 126 forks source link

error when running dem2tintiles using example file "dems_10m.dem" #7

Closed morishuz closed 6 years ago

morishuz commented 6 years ago

when using command: dem2tintiles --method terra --max-error 10 --input "/tin-terrain/3rdparty/craterlake/dems_10m.dem" --output-dir "/tiles" I get the following error: ERROR RasterIO.cpp:324 Can not match projection to EPSG:3857

fester commented 6 years ago

This is because the crater lake DEM is not in EPSG:3857. You need to reproject it using something like this: gdalwarp -t_srs EPSG:3857 dems_10m.dem dems_10m.tif. In order to correct visual artifacts you can specify resampling algorithm with -r argument, please see the official documentation.

ghost commented 6 years ago

I added a section in README about how to use sample datasets. Closing this.