pypsa-meets-earth / earth-osm

Export infrastructure data from OpenStreetMap using Python
https://pypsa-meets-earth.github.io/earth-osm/
MIT License
22 stars 12 forks source link

Corrupt pbf files cause bugs #36

Closed mnm-matin closed 6 months ago

mnm-matin commented 1 year ago

partially downloaded/corrupt pbf files cause decoding errors in pbf files. it also seems like the update flag does not re-download the file

could solve this by implementing:

mnm-matin commented 1 year ago

just bumping this myself.

mnm-matin commented 1 year ago

md5 should be downloaded together with the pbf file, and verification should be carried out. file should be delted if there is an md5 mismatch. commented out code is available in the code base that does basically this.