[postgis-users] where to register to submit bug?

Mark Cave-Ayland mark.cave-ayland at ilande.co.uk
Sun Dec 2 12:56:29 PST 2007


On Sat, 2007-11-17 at 20:34 +0000, Mark Cave-Ayland wrote:

> So the real bug in this case is that the (E)WKB parser doesn't seem to
> attempt to validate any geometries being passed through it :(  I've had
> a look at the parser code and it's quite a complicated beast with not
> many comments, so I imagine a fix is going to a little time to come up
> with.

FWIW I've now committed a patch to SVN to include simple validation for
geometries being input in (E)WKB format. From latest SVN:


bug=# select
astext('010600002011080000040000000103000000010000000400000052B81E855E5914C100000040E96133C1EC51B81EA35914C1E17A146EE76133C18FC2F5289E5914C114AE47E1D76133C15C8FC2F58D5914C114AE4761C16133C10103000000010000000500000066666666805914C11F85EB51DB6133C133333333835914C11F85EB51E46133C166666666645914C152B81E05E56133C100000000625914C1EC51B81EDC6133C166666666805914C11F85EB51DB6133C10103000000010000000100000048E17A14555914C166666666C26133C1010300000001000000010000001F85EB51565914C1EC51B85EC66133C1'::geometry);
ERROR:  geometry contains non-closed rings
bug=#


Hopefully this means future releases will prevent these ill-formed
geometries getting into the database in the first place when inserted as
(E)WKB.


Kind regards,

Mark.

-- 
ILande - Open Source Consultancy
http://www.ilande.co.uk





More information about the postgis-users mailing list