[mapserver-users] zipped shapefile

lars.schylberg at blixtmail.se lars.schylberg at blixtmail.se
Wed Jun 22 14:37:27 PDT 2016


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 <lagrange at ldeo.columbia.edu> 
> Till: mapserver-users at lists.osgeo.org 
> 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
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users

-- 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20160622/c3b2b4a1/attachment.htm>


More information about the MapServer-users mailing list