I guess that You need a layer definition in a DATA statement.

LAYER  ...  CONNECTIONTYPE OGR  CONNECTION "<datasource_name>"  DATA 
"<layer_definition>"  ...END

http://mapserver.org/input/vector/ogr.html

/Lars S.


-----Originalmeddelande----- 
> Från: lagrange123 <[email protected]> 
> Till: [email protected] 
> Datum: 2016-06-22 23:13 
> Ämne: [mapserver-users] zipped shapefile 
> 
> Hi,
> 
> I have a bunch of shapefiles in zip format for disk space reasons. And I
> want to be able to server their contents with mapserver. Is this possible?
> 
> I was thinking that I could use CONNECTIONTYPE OGR. And then, since gdal/ogr
> can read a zipped data source (per
> https://trac.osgeo.org/gdal/wiki/UserDocs/ReadInZip), this would enable
> mapserver to serve such a data source. However, I am not having much luck,
> and I don't know if this is even supported in mapserver.
> 
> My layer definition is:
> 
> LAYER
>           NAME "my_shapefile"
>           CONNECTIONTYPE OGR
>           CONNECTION "/vsizip/path/to/file.zip"
>           TYPE POLYGON
>           STATUS ON
> END
> 
> 
> 
> --
> View this message in context: 
> http://osgeo-org.1560.x6.nabble.com/zipped-shapefile-tp5272896.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> _______________________________________________
> mapserver-users mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/mapserver-users

-- 

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

Reply via email to