Update path to .tif files in create-dataset.sh#52
Update path to .tif files in create-dataset.sh#52lsfischer wants to merge 5 commits intoJorl17:masterfrom
Conversation
There was a problem hiding this comment.
I was also about to submit a PR about this.
I would have unar the .rar files with the -D option
-D, -no-directory
Never create a containing directory for the contents of the unpacked archive.
Also the /code/data directory is not created if I'm not mounting a data directory from my host machine. We could create it at the begining of the script.
OUTDIR="/code/data"
if [ ! -e $OUTDIR ] ; then
echo $OUTDIR does not exist! Creating it.
mkdir $OUTDIR
fi
What do you think?
Should fix #50
|
@charlycou Your solution sound good 👍 Actually instead of echoing and creating the directory we can create it directly if it does not exist with |
charlycou
left a comment
There was a problem hiding this comment.
@lsfischer you forgot to cancel your modifications on create-dataset.sh
|
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. |
|
Thanks a lot @charlycou! @Jorl17 any interest in merging this? I'd be happy to help out on other open issues |
This PR updates the path in
create-dataset.shto reflect that the result ofwget + unrarstores the files in aSRTM_XX_250m_TIF/SRTM_XX_250m.tifpath