The documentation page I linked to states that VSIReadDir() can be used,
and gives other details on operations that might be relevant (e.g.
distinguishing files vs. directories).
Daniel
On Tue, 6 Sept 2022 at 16:27, Sharon Eldor wrote:
> Thanks - so is there a way to list the content of the zip
Thanks - so is there a way to list the content of the zip file or do I use
some other tool for that?
On Tue, Sep 6, 2022 at 10:50 AM Daniel Evans
wrote:
> Hi Sharon,
>
> I think all you need to do is define the path to open as:
>
> '/vsizip//parks-and-recreation-feature-map-d.zip/parks-and-recre
Hi Sharon,
I think all you need to do is define the path to open as:
'/vsizip//parks-and-recreation-feature-map-d.zip/parks-and-recreation-feature-map/parks-and-recreation-feature-map.shp'
i.e. defining the filepath as:
/vsizip//
When the zip contains only a single (shape)file at the top level
Hi,
Trying to read shapefiles from a zip archive, I am running:
GDALDataset::Open('/vsizip//parks-and-recreation-feature-map-d.zip',
GDAL_OF_VECTOR |
GDAL_OF_READONLY |
GDAL_OF_VERBOSE_ERROR | GDAL_OF_SHARED,
NULL, NULL, NULL )