Why is there a difference in SqlGeography STDistance?
问题 I have been tracking down a bug in my code, and I've found that it's because the Microsoft c# SqlGeography 2014 library returns a slightly different result for STDistance than my regular code for calculating the distance between points. I wrote a small console exe to demonstrate the problem, but I can't figure out why I'm getting such a different result? static void Main(string[] args) { double earthRadius = 6378137; // meters => from both nad83 & wgs84 var a = new { lat = 43.68151632, lng =