Re: [gdal-dev] Support for reading GDAL datasets in compressed archives (.gz and .zip)

2008-08-27 Thread Lucena, Ivan
atasets" inside. Just an idea, too much coffee :) Best regards, Ivan > ---Original Message------- > From: Even Rouault <[EMAIL PROTECTED]> > Subject: Re: [gdal-dev] Support for reading GDAL datasets in compressed > archives (.gz and .zip) > Sent: Aug 27 '08

Re: [gdal-dev] Support for reading GDAL datasets in compressed archives (.gz and .zip)

2008-08-27 Thread Even Rouault
Le Wednesday 27 August 2008 15:58:54 Lucena, Ivan, vous avez écrit : > Rouault, > > Nice job! > > Even Rouault wrote: > > -- > > To read from a .gz file, > > -- > > gdalinfo /vsigzip/path/to/the/file.gz were path/to/the/file.gz is > >

Re: [gdal-dev] Support for reading GDAL datasets in compressed archives(.gz and .zip)

2008-08-27 Thread Even Rouault
Konstantin, Frank is correct. Let's suppose you have an archive archive.zip with the following content : "file1" "dir1/" "dir1/dir1file1" "dir1/dir1file2" "file2" (After r15231), the behaviour of VSIReadDir and VSIStatL is similar to the behaviour of those functions as if archive.zip was a dir

Re: [gdal-dev] Support for reading GDAL datasets in compressed archives (.gz and .zip)

2008-08-27 Thread Lucena, Ivan
Rouault, Nice job! Even Rouault wrote: -- To read from a .gz file, -- gdalinfo /vsigzip/path/to/the/file.gz were path/to/the/file.gz is relative or absolute. The first time that a .gz file is read, a small .gz.properties file wi

Re: [gdal-dev] Support for reading GDAL datasets in compressed archives(.gz and .zip)

2008-08-27 Thread Frank Warmerdam
Baumann, Konstantin wrote: Hi Even! That sounds cool. Is there also a function for retrieving all available files inside of a ZIP archive? Kosta, Programatically this can presumably be accomplished with VSIReadDir() (aka CPLReadDir()). char CPL_DLL **VSIReadDir( const char * ); The VSI file

RE: [gdal-dev] Support for reading GDAL datasets in compressed archives(.gz and .zip)

2008-08-27 Thread Baumann, Konstantin
ts.osgeo.org > Subject: [gdal-dev] Support for reading GDAL datasets in > compressed archives(.gz and .zip) > > Folks, > > I've just commited code in gdal 1.6.0dev SVN trunk that > enables GDAL to > decompress on-the-fly data from GZIP (.gz) and ZIP (.zip) archives. &

[gdal-dev] Support for reading GDAL datasets in compressed archives (.gz and .zip)

2008-08-25 Thread Even Rouault
Folks, I've just commited code in gdal 1.6.0dev SVN trunk that enables GDAL to decompress on-the-fly data from GZIP (.gz) and ZIP (.zip) archives. This is implemented as 2 virtual file systems (like /vsimem for example), /vsigzip and /vsizip. Only read-only access is supported. Note that perfo