[gdal-dev] Problem reading shapefile via /vsizip

Smith, Michael ERDC-CRREL-NH Michael.Smith at usace.army.mil
Wed Jul 11 03:50:48 PDT 2012


Reading a zipped shapefile (with 4 shapefiles in it) via vsicurl and vsizip

ogrinfo /vsizip//vsicurl/http://www.srh.noaa.gov/images/shv/shp/Day1_Conv_Outlook/Day1_Conv_Outlook.latest.zip -ro CATEGORICAL
Layer name: CATEGORICAL
Geometry: Polygon
Feature Count: 1
Extent: (-119.600000, 24.217000) - (-75.125000, 49.378000)
…

Shows 1 feature but doesn't show the geometry.

Downloading and unzipping the file, does show the geometry.
Layer name: CATEGORICAL
Geometry: Polygon
Feature Count: 1
Extent: (-119.600000, 24.217000) - (-75.125000, 49.378000)
…
POLYGON ((-83.454 46.018,-85.01 45.94,-87.15 45.02,...

Just to be inconsistent, this file does show the geometry

ogrinfo /vsizip//vsicurl/http://www.srh.noaa.gov/images/shv/shp/Day2_Conv_Outlook/Day2_Conv_Outlook.latest.zip -ro CATEGORICAL

But others in the same file do not

ogrinfo /vsizip//vsicurl/http://www.srh.noaa.gov/images/shv/shp/Day2_Conv_Outlook/Day2_Conv_Outlook.latest.zip -ro WIND


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20120711/8a4b50ee/attachment.html>


More information about the gdal-dev mailing list