A VSIStatL() (“/vsizip/…”) call will return the uncompressed size of the file. Directory listing is available with VSIReadDir(). zip as a directory, you can use /vsizip/path/to/the/file.zip or /vsizip/path/to/the/file.zip/subdir. To point to a file inside a zip file, the filename must be of the form /vsizip/path/to/the/file.zip/path/inside/the/zip/file, where path/to/the/file.zip is relative or absolute and path/inside/the/zip/file is the relative path to the file inside the archive. vsizip/ is a file handler that allows reading ZIP archives on-the-fly without decompressing them beforehand. Notable exceptions are the netCDF, HDF4 and HDF5 drivers. The full list of these formats can be obtained by looking at the driver marked with ‘v’ when running either gdalinfo -formats or ogrinfo -formats. Virtual file systems can only be used with GDAL or OGR drivers supporting the “large file API”, which is now the vast majority of file based drivers. (But when writing documentation please still use two.)) Drivers supporting virtual file systems (Note is also OK to say /vsizip/vsicurl/… with a single slash. zip # ogrinfo a shapefile in a zip file on an ftp: ogrinfo - ro - al - so / vsizip // vsicurl / ftp : // user : password. com / OSGeo / gdal / master / autotest / ogr / data / shp / poly. # ogrinfo a shapefile in a zip file on the internet: ogrinfo - ro - al - so / vsizip // vsicurl / https : // raw.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |