New coordinate from point, distance & bearing

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


Thanks,

Jo
Jun 5, 2007 at 6:03 PM
Edited Jun 5, 2007 at 6: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.

puNk
Jun 6, 2007 at 6:47 AM
Edited Jun 6, 2007 at 6: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.

http://www.codeguru.com/cpp/cpp/algorithms/article.php/c5115/


Jo
Jun 9, 2007 at 11:33 AM
Hi Jo,

thanks for the hints.

puNk