[postgis-devel] bug in simplify a polygon

strk at refractions.net strk at refractions.net
Tue Sep 21 03:03:00 PDT 2004


I've tried running your query on 0.8.2 and the bug is not there.

Note that the simplify code have been patched:

 * Revision 1.3  2004/04/27 13:50:59  strk
 * Fixed bug in simplify() that was using the square of the given tolerance.

The patch has been first included in 0.8.2.

Your 0.01 tolerance were squared to 0.0001, but this does really
not explain your problems, as the effects of this should be
simplifying much less!

If you're not using 0.8.2 try upgrading (0.9 is out!)
Otherwise let me know.

Thanks.

--strk;


On Tue, Sep 21, 2004 at 11:47:02AM +0200, strk at refractions.net wrote:
> On Tue, Sep 21, 2004 at 10:46:27AM +0800, Fu Chen wrote:
> > But simple polygon seems ok in simplify procedure, not all the polygon get such weird result :)
> > I think maybe you can  create a row by this WTK string and test it. 
> > I send the string in the text file in this file.
> > If you like the shp file, I can also send it to you.
> > Thanks!
> 
> Attachment is ok. 
> I'll take a look at it.
> Thanks.
> --strk;
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel



More information about the postgis-devel mailing list