I think you're going to have to write a little routine to close your rings... it looks like the WKB emitter is hard-coded to error out when asked to serialize broken things (hm???? I thought this was changed, the neverending story...)
You can patch it your self by changing this line http://trac.osgeo.org/postgis/browser/tags/1.5.3/postgis/lwgeom_inout.c#L307 from PARSER_CHECK_ALL to PARSER_CHECK_NONE P. On Thu, Aug 18, 2011 at 9:19 AM, Mr. Puneet Kishor <[email protected]> wrote: > > I loaded a bunch of data (that came from ArcMap) into PostGIS (1.5.3) via > shp2pgsql and am trying to draw it with MapServer 6.0.1. I get > >> msDrawMap(): Image handling error. Failed to draw layer named 'foo'. >> msPostGISLayerWhichShapes(): Query error. Error (ERROR: geometry contains >> non-closed rings ) > > > Many thanks in advance for your suggestions. > > -- > Puneet Kishor > > _______________________________________________ > postgis-users mailing list > [email protected] > http://postgis.refractions.net/mailman/listinfo/postgis-users > _______________________________________________ postgis-users mailing list [email protected] http://postgis.refractions.net/mailman/listinfo/postgis-users
