This project has moved and is read-only. For the latest updates, please go here.

New coordinate from point, distance & bearing

Topics: Algorithms
May 30, 2007 at 12:10 PM
Is such a function integrated in Sharpmap?
I want to calculate the coordinate located in a certain direction and distance from an origin?


Jun 5, 2007 at 7:03 PM
Edited Jun 5, 2007 at 7:04 PM
Hi jo2007,
do you have any suggetions or a solution for calculation meanwhile?

My basis are geographic coordinates. I've seen the getpoint functionallity in the MonoGIS.Utils.SpatialUtil namespace. But there are no help topics anywhere. I think to use this function i need orthogonal coordinates. I don't want to transform my geographic coordinates in an orthogonal system.

Any hints for me? Thanks.

Jun 6, 2007 at 7:47 AM
Edited Jun 6, 2007 at 7:48 AM
Yes, I found the forumula to calculate the projection and it works very well.
When searching the web, I found a couple of articles on how to do that, but for whatever reason a first formula I found gave me very inaccurate results.

Yesterday I found this excellent article on codeguru which comes with a sample project containing all geo functions one could need implemented in C++.
Problem 1C in the article is exactly the one I was looking for: Calculate end point (latitude/longitude) given a starting point, distance, and azimuth.

Jun 9, 2007 at 12:33 PM
Hi Jo,

thanks for the hints.