[Mapserver-users] using "polygonZ" shapefiles with Mapserver
Daniel Morissette
morissette at dmsolutions.ca
Mon Oct 20 08:13:35 PDT 2003
JAQUEMET Clement DSIC BPSDC wrote:
> Hello,
>
> When we try to publish " polygonZ " shapefile data, mapserver return an
> error " msDrawShape(): General error message. Only polygon shapes can be
> drawn using a POLYGON layer definition. "
>
> Where can we find free utilities to convert polygonZ to polygon, or does
> it exist an extension for Mapserver to bypass this limit ?
>
You should be able to read those files via OGR.
i.e assuming you have built MapServer with OGR support, instead of this:
LAYER
DATA "/path/to/shapefile"
...
END
use this:
LAYER
CONNECTIONTYPE OGR
CONNECTION "/path/to/shapefile.shp"
...
END
Daniel
--
------------------------------------------------------------
Daniel Morissette morissette at dmsolutions.ca
DM Solutions Group http://www.dmsolutions.ca/
------------------------------------------------------------
More information about the MapServer-users
mailing list