Polygon snapping

5522
3
Jump to solution
11-10-2014 02:11 PM
Ryan_D_Smith
New Contributor

I'm writing a WPF app that allows users to position polygons on a map.  I want the polygons to snap to the edge of another polygon when they are close.  Is there any way to accomplish this?

0 Kudos
1 Solution

Accepted Solutions
dotMorten_esri
Esri Notable Contributor

The key to this is GeometryEngine.NearestVertex and GeometryEngine.NearestCoordinate.

I've attached a sample that performs snapping to a geometry. It's written for Windows Store, but it more or less works the exact same in WPF

View solution in original post

0 Kudos
3 Replies
TuukkaJärvinen
New Contributor III

I'm also looking for an answer on this one. Any information about snapping would be greatly appreciated.

0 Kudos
DavideLimosani
Occasional Contributor II

i need a solution for this too...

0 Kudos
dotMorten_esri
Esri Notable Contributor

The key to this is GeometryEngine.NearestVertex and GeometryEngine.NearestCoordinate.

I've attached a sample that performs snapping to a geometry. It's written for Windows Store, but it more or less works the exact same in WPF

0 Kudos