Select to view content in your preferred language

Polygon snapping

5727
3
Jump to solution
11-10-2014 02:11 PM
Ryan_D_Smith
Deactivated User

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
Deactivated User

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

0 Kudos
DavideLimosani
Frequent Contributor

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