[mapserver-users] zipped shapefile
Ben Grange
lagrange at ldeo.columbia.edu
Thu Jun 23 05:52:17 PDT 2016
Thanks for the speedy replies, guys. I have it working now. For me the
issue was the product of (1) using a relative path, and (2) using the wrong
TYPE. Silly me!
On Thu, Jun 23, 2016 at 7:34 AM Jeff McKenna <jmckenna at gatewaygeomatics.com>
wrote:
> 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
> 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/20160623/7fd6ddf4/attachment.htm>
More information about the MapServer-users
mailing list