[postgis-devel] [postgis-users] ERROR: geometry contains non-closed rings

Paul Ramsey pramsey at opengeo.org
Thu Aug 18 09:34:44 PDT 2011


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 <punk.kish at gmail.com> 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
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>



More information about the postgis-devel mailing list