On Aug 18, 2011, at 10:04 PM, Paul Ramsey wrote:

> 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...)


For what its worth, I am using

"POSTGIS="1.5.3" GEOS="3.3.0-CAPI-1.7.0" PROJ="Rel. 4.7.1, 23 September 2009" 
LIBXML="2.7.8" USE_STATS"

As mentioned in my reply to Ben Madin's suggestion, when I run the following 

        SELECT gid FROM data WHERE st_isclosed(the_geom) IS FALSE;

I get no results.


> 
> 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

Reply via email to