AnsweredAssumed Answered

ArcGIS Pro SDK - Polyline - Point at every Vertex

Question asked by JMeijerink on May 4, 2018

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[i], Latitude[i], 0);
list.Add(mb.ToGeometry());
}
Polyline pLine = PolylineBuilder.CreatePolyline(list, SpatialReferences.WGS84);
var createFeatures = new EditOperation();
createFeatures.Create(fLayer, pLine);
createFeatures.Execute();

 

Jan-Willem

Outcomes