Re: [gdal-dev] Snap point to vertex/segment

2014-12-12 Thread Federico Jurio
Thank you for the answers guys. My system only have gdal/ogr so i can't use PostGIS. I tried to use the Project method from OGRSimpleCurve class but always return -1 because i'm creating the geometry using OGR instead

Re: [gdal-dev] Snap point to vertex/segment

2014-12-10 Thread Dmitry Baryshnikov
Hi Federico, Does the Project method of OGRLineString not suits you? The point snap to nearest point, the point on line via the project, and point on polygon via cast the outer or inner rings to line and project too. Best regards, Dmitry 11 дек. 2014 г. 0:56 пользователь "Even Rouault" написал: >

Re: [gdal-dev] Snap point to vertex/segment

2014-12-10 Thread Even Rouault
Le mercredi 10 décembre 2014 22:28:48, Federico Jurio a écrit : > Dear all, i'm trying to make a snapping tool to project new points in a > layer to the nearest geometry. First of all, when i activate my tool i make > a buffer of all the geometries in the layer. If the point that i'm trying > to ad

[gdal-dev] Snap point to vertex/segment

2014-12-10 Thread Federico Jurio
Dear all, i'm trying to make a snapping tool to project new points in a layer to the nearest geometry. First of all, when i activate my tool i make a buffer of all the geometries in the layer. If the point that i'm trying to add in the layer is within the buffer i want to move this point to the nea