Why does SnapToSpatialReference move points beyond tolerance?

442
1
Jump to solution
04-16-2019 12:57 PM
StephenRhea
New Contributor III

I’m creating a semicircle around a point, but when I add the arc to a polyline and call SnapToSpatialReference, the center point moves almost a quarter of a meter. It’s a high-resolution spatial reference (resolution = 0.0001m, tolerance = 0.001m), and all code objects have the spatial reference set throughout the process. Calling Snap on the circular arc doesn't change the points, but calling it on the polyline does. Any advice to what's going on?

Side note: I first noticed this when saving the feature. Setting the Shape property on the IFeatureBuffer changed the center point the same way that calling Snap does.

See attached for coordinate comparison and sample VB.NET code.

0 Kudos
1 Solution

Accepted Solutions
StephenRhea
New Contributor III

This "fixed itself" when I upgraded from version 10.4.1 to 10.6.1. I'm not sure exactly what has changed, but it doesn't exist any more.

View solution in original post

0 Kudos
1 Reply
StephenRhea
New Contributor III

This "fixed itself" when I upgraded from version 10.4.1 to 10.6.1. I'm not sure exactly what has changed, but it doesn't exist any more.

0 Kudos