Create a line from a point following distance and degrees

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

Image
Coordinator
Feb 13, 2013 at 12: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 13, 2013 at 11:19 PM
Thank you very much!