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

Create a line from a point following distance and degrees

Topics: Algorithms
Feb 12, 2013 at 6:26 PM
I have no idea how to do this. Can you help me?

Feb 13, 2013 at 1:34 PM
Assuming you don't want the cartesian solution with
var dx = Math.Cos(angleInRadians) * lengthInMeter;
var dy = Math.Sin(angleInRadians) * lengthInMeter;
var c = new GeoAPI.Geometries.Coordinate(apoint.X + dx, apoint.Y + dy)
var gf = new NetTopologySuite.Geometries.GeometryFactory();
var line = gf.CreateLinestring(new [] { apoint, c });
here are some formulas.
Hth FObermaier
Feb 14, 2013 at 12:19 AM
Thank you very much!