sekilab / RoadDamageDetector

MIT License
744 stars 253 forks source link

RDD2022_Norway.zip file corrupted #57

Open HarisIqbal88 opened 1 year ago

HarisIqbal88 commented 1 year ago

For me the Norway data file is corrupted. Was anyone able to extract Norway data?

Archive: RDD2022_Norway.zip warning [RDD2022_Norway.zip]: 6314542430 extra bytes at beginning or within zipfile (attempting to process anyway) error [RDD2022_Norway.zip]: start of central directory not found; zipfile corrupt.

runarbu commented 1 year ago

This file was corrupted for me too. However, on my Mac, I was able to fix the file by running this command:

zip --fixfix RDD2022_Norway.zip --out RDD2022_Norway_fixed.zip

--fixfix does the following:

Fix the zip archive. The --fix option can be used if some portions of the archive are missing, but requires a reasonably intact central directory. The input archive is scanned as usual, but zip will ignore some problems. The resulting archive should be valid, but any inconsistent entries will be left out.

When doubled as in --fixfix, the archive is scanned from the beginning and zip scans for special signatures to identify the limits between the archive members. The single -F is more reliable if the archive is not too much damaged, so try this option first.