Hello,
can anybody explain to me, why all geometry operations are in ArcGIS Pro much slower than in ArcMap? One small example - I took one very long line with 16 011 vertices and tried to do one very simple operation such as loop through all vertices and create two buffers (5 and 10 meters) for each vertex. In ArcMap it takes 0.1 seconds to finish the whole operation, whereas in ArcGIS Pro it takes more than 11 seconds!!
Here is my simple code in ArcGIS Pro:
long tickCount = Environment.TickCount;
ReadOnlyPointCollection pointCollection = polyline.Points;
int sequence = 0;
while (sequence < pointCollection.Count)
{
MapPoint bod = pointCollection[sequence];
Geometry pBuffer5M = GeometryEngine.Instance.Buffer(bod, 5);
Geometry pBuffer10M = GeometryEngine.Instance.Buffer(bod, 10);
sequence += 1;
}
TimeSpan runningTime = TimeSpan.FromMilliseconds(Environment.TickCount - tickCount);
string runningTimeForTxt = runningTime.ToString(@"hh\:mm\:ss");
And here is my simple code in ArcGIS Desktop:
long tickCount = Environment.TickCount;
IPointCollection pointCollection = (IPointCollection)pPolyline;
int sequence = 0;
while (sequence < pointCollection.PointCount)
{
IPoint point = pointCollection.Point[sequence];
ITopologicalOperator pTopoOp = (ITopologicalOperator)point;
IGeometry pBuffer5M = pTopoOp.Buffer(5);
IGeometry pBuffer10M = pTopoOp.Buffer(10);
sequence ++;
}
TimeSpan runningTime = TimeSpan.FromMilliseconds(Environment.TickCount - tickCount);
string runningTimeForTxt = runningTime.ToString(@"hh\:mm\:ss");
Solved! Go to Solution.
Hi Radek, I am able to reproduce this and have identified the problem. The fix will be in a future release. Thank you for reporting it.
Annette
Hi Radek, I am able to reproduce this and have identified the problem. The fix will be in a future release. Thank you for reporting it.
Annette
Hi Annette,
thank you very much for your response.
Radek