On 2016-06-23 3:49 AM, Even Rouault wrote:

Definitely not in the DATA that must be a layer name or SQL SELECT, but in 
CONNECTION.
It is important to put the absolute path, as the SHAPEPATH directive will have 
no effect on
a /vsizip/ filename. As Mike raised, it is recommended to put the filename of 
the shape too.
(you may omit it if the .shp is at the root of the .zip and there's no other 
"extra" file than the ones
expected for a shapefile. When you omit it, the zip is recognized as a 
directory and it is the
same logic as doing ogrinfo on a directory that is applied. Will work with 
directory of shapefiles
and .tab/.mif for example)

Thank you Even, my issue was the full path requirement. I will document this now.

Below is my working layer (with MS4W 3.1.4 / MapServer 7.0.1) :

LAYER
  NAME "testzip"
  TYPE POLYGON
  STATUS ON
  CONNECTIONTYPE OGR
  CONNECTION "/vsizip/D:/ms4w/apps/test/test.zip"
  DATA "test"
  CLASS
    NAME "test"
    STYLE
      COLOR 240 240 240
      OUTLINECOLOR 199 199 199
    END
  END
END # layer

-jeff


--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/





_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to