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

Allow specifying a URL for planet instead of assuming the osm-pds S3 #58

Merged
merged 2 commits into from
Aug 6, 2020

Conversation

iandees
Copy link
Member

@iandees iandees commented Aug 6, 2020

Adds a feature to specify a URL to download from instead of calculating the URL to the osm-pds bucket using the "planet date" value. Specifying the --planet-url option also makes MD5 checksumming optional. Add the --planet-md5-url argument to download and use that file to checksum the planet downloaded with --planet-url.

@iandees
Copy link
Member Author

iandees commented Aug 6, 2020

@zerebubuth or @rmarianski, do you have some time to look through these changes or are you busy?

@iandees iandees merged commit cd84271 into master Aug 6, 2020
@nvkelso
Copy link
Member

nvkelso commented Aug 6, 2020

🎉

@iandees iandees deleted the dees/planet-url branch August 6, 2020 21:47
Copy link
Member

@rmarianski rmarianski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

echo "checking planet file MD5" > $STATUS
(cd planet && md5sum --check "${PLANET}.md5")
# check the md5sum if the md5 file was downloaded
if [[ -f "planet/${PLANET_FILE}.md5" ]]; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this assume that ${PLANET_MD5_URL} = "${PLANET_URL}.md5"? Consequences aren't bad if not - it just skips the check, and it's a very strong convention to have the MD5 file be the original file + .md5. Maybe line 91 above could be wget -O "${PLANET_FILE}.md5" -q "${PLANET_MD5_URL}" to cover this (microscopic) corner case?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea, good catch. I'll adjust this in the next PR.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolved in 273da15.

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

Successfully merging this pull request may close these issues.

4 participants