ArcGIS Pro SDK - Polyline - Point at every Vertex

210
0
05-04-2018 12:20 AM
Highlighted
New Contributor

Hi,

I have a list of mappoints from which I have created a polyline. I have 202 points in the list, but the polyline only shows 6 vertices. The 'pointcount' property of the polyline has the value 202. How do I show a point at every vertex?

List<MapPoint> list = new List<MapPoint>();
for (int i = 0; i < Longitude.Length; i++)
{
mb = new MapPointBuilder(Longitude, Latitude, 0);
list.Add(mb.ToGeometry());
}
Polyline pLine = PolylineBuilder.CreatePolyline(list, SpatialReferences.WGS84);
var createFeatures = new EditOperation();
createFeatures.Create(fLayer, pLine);
createFeatures.Execute();

Jan-Willem

0 Kudos
0 Replies