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 compressed osm.bz2 file #75

Open
mayeulk opened this issue Oct 8, 2018 · 1 comment
Open

Allow compressed osm.bz2 file #75

mayeulk opened this issue Oct 8, 2018 · 1 comment

Comments

@mayeulk
Copy link

mayeulk commented Oct 8, 2018

if f.endswith('.pbf'):

For getting DAILY updated full planet.osm, AFAIK only osm.bz2 are available, see:
https://wiki.openstreetmap.org/wiki/Planet.osm#Planet.osm_mirrors
For instance: https://ftp5.gwdg.de/pub/misc/openstreetmap/planet.openstreetmap.org/planet/planet-latest.osm.bz2
It would be great to be able to use this, as imposm supports bz2

@Gustry
Copy link
Collaborator

Gustry commented Oct 8, 2018

I need to check why only PBF is allowed. But if I remember correctly, it was because of the timestamp. In the PBF, the timestamp is usually included.

https://github.com/kartoza/docker-osm/blob/develop/docker-osmupdate/download.py#L111

This line will take the timestamp from the PBF file and I'm not sure it works well with an XML BZ2 file.

In the first release, I was using the timestamp.txt which is sometimes included : http://download.openstreetmap.fr/extracts/ next to the PBF file to get the timestamp and then I realize that it was also working without.

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

2 participants