gregedwards

Smoothing Lines in a List of Points

Discussion created by gregedwards on Dec 2, 2011
Latest reply on Feb 15, 2012 by kuiperfoliage
We are receiving a list of points, and adding them to a map layer as a polyline. Using ESRI tools, how might we convert the line segment into a smoothed line segment using Bezier Spline or an equivalent?

Thank you.
-Greg Edwards

The code looks something like this:

var pointCollection = new Geometry.PointCollection();

//IN LOOP:

pointCollection.Add(Transform.GeographicToWebMercator(new MapPoint(latitude, longitude)));


//AFTER LOOP IS COMPLETED:

var polyline = new Polyline();
polyline.Paths.Add(pointCollection);
polylineList.Add(polyline);

Outcomes