Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker installation help #73

Open
jonboywhite opened this issue Feb 7, 2023 · 4 comments
Open

Docker installation help #73

jonboywhite opened this issue Feb 7, 2023 · 4 comments

Comments

@jonboywhite
Copy link

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

@CelticJasen
Copy link

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
Copy link

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

@timprepscius
Copy link

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)

@mavengences
Copy link

Thanks Jason! This worked!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants