Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

osmupdate: retreave timestamp form .pbf file #64

Open
BrtBnn opened this issue Jul 21, 2018 · 2 comments
Open

osmupdate: retreave timestamp form .pbf file #64

BrtBnn opened this issue Jul 21, 2018 · 2 comments

Comments

@BrtBnn
Copy link

BrtBnn commented Jul 21, 2018

dowload.py tries to retrieve the latest timestamp from country.pbf using osmconvert country.pbf --out-timestamp.
If the country.pbf file does not have a timestamp and, osmconvert returns (invalid timestamp), download.py could recover the last-timestamp using osmconvert country.pbf --out-statistics, or is should throw an exception.

@Gustry
Copy link
Collaborator

Gustry commented Aug 6, 2018

Where did you get your PBF?
I always got a result from osmconvert country.pbf --out-timestamp in my case.

So if the timestamp is invalid, we should run osmconvert country.pbf --out-statistics ?

@olekyd
Copy link

olekyd commented Aug 6, 2019

if you download pbf file from http://download.openstreetmap.fr/extracts then osmconvert outputs (invalid timestamp), but if you download it from http://download.geofabrik.de then it's fine.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants