Quantcast
Channel: DotSpatial
Viewing all articles
Browse latest Browse all 3973

New Post: Position.TranslateTo() doesn't work

$
0
0
Dear community member,

I have been experimenting with the Position.TranslateTo(position, angle, distance) method, and have found that the distance is often wrong.

For example:
  • Longitude(43.862714)
  • Latitude(-79.387035)
  • angle/bearing = 0 degrees
  • distance = 10 km
Result:
  • the translated value is East of the reference point (expected: due north)
  • the translated value (according to google maps) is 7.16km away (expected 10km)
Clearly I am doing something wrong.

Thoughts?

Viewing all articles
Browse latest Browse all 3973

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>