[geos-devel] polygon snapping

Jasmin FORMONT JFORMONT at siradel.com
Thu Apr 19 04:04:08 EDT 2012

I don't understand how to use initGEOS(). What is a GEOSMessageHandler ?

-----Message d'origine-----
De : geos-devel-bounces at lists.osgeo.org [mailto:geos-devel-bounces at lists.osgeo.org] De la part de Sandro Santilli
Envoyé : mercredi 18 avril 2012 17:11
À : GEOS Development List
Objet : Re: [geos-devel] polygon snapping

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


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
geos-devel mailing list
geos-devel at lists.osgeo.org

More information about the geos-devel mailing list