[geos-devel] Snapping bug ?
strk
strk at keybit.net
Fri Dec 3 09:23:43 EST 2010
On Fri, Dec 03, 2010 at 11:02:35AM +0100, strk wrote:
> GEOS/JTS in sync
> (I checked and synched, only additional snapToSelf was missing).
So, Martin.
After a closer look I found that indeed GEOS wasn't checking
for duplicates as JTS was. BUT: reading the code JTS seems to
be only checking for duplicates when snapping segments, not vertices.
So this specific case still yelds the duplicated point after porting
that part of the code.
Did you try with JTS ?
> =# select st_asewkt(st_snap(
> 'POLYGON ((0 0, 1 0, 1 1, 0 1, 0 0))',
> 'POINT(0.5 0)',
> 0.6
> ));
--strk;
() Free GIS & Flash consultant/developer
/\ http://strk.keybit.net/services.html
More information about the geos-devel
mailing list