[geos-devel] polygon snapping

Sandro Santilli strk at keybit.net
Wed Apr 18 11:11:30 EDT 2012


Use the C-API: GEOSnap(which, to_which, tolerance)

--strk;

On Wed, Apr 18, 2012 at 05:05:21PM +0200, Jasmin FORMONT wrote:
> Hi everyone
> 
> I'm trying to snap some polygons together. You can see attached the base situation (snap.dxf), what I'd like to obtain (or something similar to this, res_snap.dxf) and the best I can  get(actual_snap.dxf).
> So far I managed to have two polygons snapped together, but the 3rd one never obey my orders :)
> 
> I don't really understand how the GeometrySnapper object I create works. I use the method snap(Geometry, Geometry, double, GeomPtrPair). I've seen the method snapTo but I can't get it to actually do something.
> 
> Could someone explain what would be a good method to obtain something similar to what I want ?
> Thanks


More information about the geos-devel mailing list