simonaoliver / metageta

Automatically exported from code.google.com/p/metageta
Other
0 stars 0 forks source link

Extract metadata from rasters in zip and tar.gz/bz2 archives #43

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Add ability to extract metadata from rasters in zip and tar.gz/bz2 archives now 
that this is handled transparently (for some formats...) in GDAL.

Original issue reported on code.google.com by pinner.luke@gmail.com on 25 Jan 2012 at 12:20

GoogleCodeExporter commented 9 years ago
Might take a while, listing archive contents is easy, but there's lots of code 
in the format drivers (and base Dataset class) that assumes they are handling a 
regular file - i.e 
os.path.exists(r'C:\ExistingDir\ExistingZipFile.zip\image.tif') will always 
return False.

And for those formats that GDAL doesn't support at all, or doesn't support 
transparent access to via the /vsizip/ and /vsitar/ virtual filesystems, the 
only option is to uncompress/extract. I don't think this is workable, in this 
case it will either be flagged in the log or the output spreadsheet.

Original comment by pinner.luke@gmail.com on 25 Jan 2012 at 12:24

GoogleCodeExporter commented 9 years ago
This issue was updated by revision r643.

Enhancements to enable listing archive contents. Add archivelist function and 
modifies rglob class.

Original comment by pinner.luke@gmail.com on 25 Jan 2012 at 12:28

GoogleCodeExporter commented 9 years ago
This issue was updated by revision r644.

Enabled metadata extraction from zip/tar archives for generic gdal supported 
formats. Untested on custom formats yet. No handling of errors trying to read 
such formats other than the usual logging.

Original comment by pinner.luke@gmail.com on 25 Jan 2012 at 6:04

GoogleCodeExporter commented 9 years ago

Original comment by lukepinn...@gmail.com on 18 Sep 2014 at 4:20