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

Add osmium download-changes tool #73

Closed
nextstopsun opened this issue Sep 1, 2017 · 4 comments
Closed

Add osmium download-changes tool #73

nextstopsun opened this issue Sep 1, 2017 · 4 comments
Labels
enhancement Wishlist item.

Comments

@nextstopsun
Copy link

The last bit missing in osmium tool is ability to download and cumulate planet changesets like osmupdatedoes.
I guess if this can be done in some form with pyosmium, it would be great to port it from there.
If this tool is in place, then my whole workflow involving ogr2poly, osmupdate, osmfilter, osmconvert and would be replaced with just osmium, making it a universal tool, similar to osmosis, but times faster.

@joto
Copy link
Member

joto commented Sep 1, 2017

I totally agree, I would like this, too. But it is unlikely to happen in the short run. The main reason is that there isn't a decent and widely available HTTP library for C++ that would make this a) easy to write for me and b) easy to compile for everybody. I recommend the programs supplied with Pyosmium which can do this and are really easy to use.

@joto joto added the enhancement Wishlist item. label Sep 1, 2017
@nextstopsun
Copy link
Author

Doesn't osmium depend on curl?

@joto
Copy link
Member

joto commented Sep 1, 2017

Osmium can optionally use the curl binary for reading OSM files from the web. But this has always been somewhat of a hack. For one, detecting error conditions when using an external program is problematic. So I don't want to use that kind of solution for downloading change files, possibly loosing data in the process. And it doesn't work on Windows.

I have thought about using the libcurl library internally, but the interface for streaming use is horribly complicated and I couldn't figure out how to use it.

@joto
Copy link
Member

joto commented Apr 17, 2020

This functionality is available in PyOsmiums pyosmium-get-changes.py and pyosmium-up-to-date.py which I recommend to use.

@joto joto closed this as completed Apr 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Wishlist item.
Development

No branches or pull requests

2 participants