This project is read-only.


Jun 22, 2014 at 12:09 PM

I need to create a snap function. I think that I can uses SelectShapes to find closest shapes and Distance to find the closest one among them but I will have to do some math to test both vertices ends of this shape if it's a line to get its coordinates. Is this the best way or should I consider another function ?

By the way, fortunately I do not have polygon, otherwise I do not see other solution than testing each vertice ? I suggest that Distance or another function returns also the closest vertice.

Dec 3, 2014 at 2:17 PM
Hi Oliver,

Do you still need help with this? SelectShapes is a good starting point. If you first start with creating a spatial index it will be faster.
If you use MapWinGIS v4.9.1 or higher you can also use Shape.ClosestPoints: