I'm currently trying convert a Polyline into evenly spaced MapPoints. For instance if I have Polyline of two points such as:
var builder = new PolylineBuilder(SpatialReference.Wgs84);
var part = new List<MapPoint>();
part.Add(new MapPoint(x1, y1);
part.Add(new MapPoint(x2,y2);
builder.AddPart(part);
var polyLine = builder.ToGeometry();
I would like to specify a certain spacing e.g. 10 meters, and then generate n different MapPoints along the Polyline. For example, if the total distance (L2) between the vertices(x1,y1), (x2,y2) on the Polyline is 95 meters then I would generate 9 MapPoints that are 10 meters spaced apart (the remaining 5 meters would be disregarded).
To specify a little more, the distance between the two Polyline vertices will not be significantly large (they definitely will be in the same UTM zone) so it is safe to assume the line will not be curved, and is straight.
Any suggestions?