Select to view content in your preferred language

Geometry operations in ArcGIS Pro painfully slow

180
2
Jump to solution
02-07-2025 05:08 AM
RadekMandovec
Emerging Contributor

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");

 

0 Kudos
1 Solution

Accepted Solutions
AnnetteLocke
Esri Contributor

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

View solution in original post

0 Kudos
2 Replies
AnnetteLocke
Esri Contributor

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

0 Kudos
RadekMandovec
Emerging Contributor

Hi Annette,

thank you very much for your response.

Radek

0 Kudos