Select to view content in your preferred language

Python geoprocessing performance

3049
10
09-09-2013 11:31 PM
ab1
by
Deactivated User
Hi,

I have a python geoprocessing that takes a lot of time. The geoprocessing calculates geometries using points, polygons, buffers, and cursors.
Do you have any hint of how to optimize the geoprocessing?
Would it be shorter in time if I used the Java API?

Thanks.
0 Kudos
10 Replies
curtvprice
MVP Alum
I have a python geoprocessing that takes a lot of time. The geoprocessing calculates geometries using points, polygons, buffers, and cursors.


Some things to think about...


  • If you are at 10.1 or later, use arcpy.da - it's a lot faster

  • Use the shortcuts (SHAPE@, etc) to access the geometry -- this is much faster than accessing the shape field directly.

  • Remember you can use geoprocessing tools directly on arcpy geometry objects (this may help you design a zippier workflow)

0 Kudos