[Mapserver-users] using "polygonZ" shapefiles with Mapserver

Daniel Morissette morissette@dmsolutions.ca
Mon, 20 Oct 2003 11:13:35 -0400


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@dmsolutions.ca
  DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------

_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users