[geos-devel] Snapping bug ?

strk strk at keybit.net
Fri Dec 3 05:02:35 EST 2010


On Thu, Dec 02, 2010 at 07:55:06PM -0800, Martin Davis wrote:
> strk,
> 
> I'm not exactly sure which snapping routine you are using (and I'm not 
> even sure if GEOS is in synch with JTS for this functionality).
> 
> Can you provide more details on the code you're using?  Is there a 
> tolerance involved?

GEOS/JTS in sync
(I checked and synched, only additional snapToSelf was missing).

Tolerance is 1, but 0.6 is also enough. 

It's now in postgis too:

=# select st_asewkt(st_snap(
 'POLYGON ((0 0, 1 0, 1 1, 0 1, 0 0))',
 'POINT(0.5 0)',
 0.6
));
POLYGON((0.5 0,0.5 0,1 1,0 1,0.5 0))

--strk;

  ()   Free GIS & Flash consultant/developer
  /\   http://strk.keybit.net/services.html


More information about the geos-devel mailing list