Jorl17 / open-elevation

A free and open-source alternative to Google Elevation API. Host your own! https://open-elevation.com
GNU General Public License v2.0
689 stars 167 forks source link

Update path to .tif files in create-dataset.sh #52

Open lsfischer opened 2 years ago

lsfischer commented 2 years ago

This PR updates the path in create-dataset.sh to reflect that the result of wget + unrar stores the files in a SRTM_XX_250m_TIF/SRTM_XX_250m.tif path

lsfischer commented 2 years ago

@charlycou Your solution sound good 👍

Actually instead of echoing and creating the directory we can create it directly if it does not exist with mkdir -p $OUTDIR will adjust to that

ViperG commented 2 years ago

Fyi this is still an issue when you use the pre-existing openelevation/open-elevation docker image (as the api docs instruct) and run it to generate the data tile sets. switching from unrar to unar in an older commit changes the file output behavior and adds an extra folder per .tar file so the gdalinfo commands fail since they have the incorrect path. Workaround of course is to not use the docker image and run the commands manually or import the docker image and replace the scripts and build a new docker image.

lsfischer commented 1 year ago

Thanks a lot @charlycou!

@Jorl17 any interest in merging this? I'd be happy to help out on other open issues