open-elevation icon indicating copy to clipboard operation
open-elevation copied to clipboard

Docker installation help

Open jonboywhite opened this issue 3 years ago • 4 comments

Hi. Im hoping someone could give me some help getting this up and running on a docker droplet? Ive followed all the instructions but I get these errors

ERROR 4: SRTM_NE_250m.tif: No such file or directory gdalinfo failed - unable to open 'SRTM_NE_250m.tif'. ERROR 4: SRTM_NE_250m.tif: No such file or directory gdalinfo failed - unable to open 'SRTM_NE_250m.tif'. ../create-tiles.sh: line 13: ul[0]: unbound variable

I think its this part im not understandig "The Docker image roots itself at /code/ and expects that all GeoTIFF datafiles be located at /code/data/, which you should mount using a volume." How do I do this part. Im new to docker and I have no clue. Thanks for any help anyone can give

jonboywhite avatar Feb 07 '23 12:02 jonboywhite

I figured out why this happens. The rar files get their data extracted into their own folder so you'll have data/SRTM_NE_250m_TIF/SRTM_NE_250m.tif so you need to move the tif files out of those folders and into the data folder. Then you can run your command: docker run -t -i -v $(pwd)/data:/code/data openelevation/open-elevation /code/create-dataset.sh Everything should be good to go after all that.

CelticJasen avatar Mar 02 '23 22:03 CelticJasen

Since it doesn't look like this repo is updated anymore, I went ahead and made my own branch to fix this small issue in the script that causes this specific problem. Find it here https://github.com/CelticJasen/open-elevation

CelticJasen avatar Mar 08 '23 18:03 CelticJasen

Another way to run the script is like so: (on linux and osx)

mkdir data
pushd data
ln -s SRTM_NE_250m_TIF/SRTM_NE_250m.tif
ln -s SRTM_SE_250m_TIF/SRTM_SE_250m.tif
ln -s SRTM_W_250m_TIF/SRTM_W_250m.tif
popd

docker run -t -i -v $(pwd)/data:/code/data openelevation/open-elevation /code/create-dataset.sh

This makes symbolic links to the files which will exist after the run-rarring - which enables the tile creator to work. Seems to work correct as of today (20231015)

timprepscius avatar Oct 15 '23 18:10 timprepscius