Skip to content

A carefully curated list of ArcPy tips, tricks, best management practices and most of all...hacks!

Notifications You must be signed in to change notification settings

clj2289/ArcPy-Tips

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ArcPy-Tips

ArcPy tips, tricks, best management practices and most of all...hacks!

Best Management Practices

Tips

Tricks

  • Use arcpy.da.UpdateCursor and arcpy.da.SearchCursor for fast in memory reprojection
  • Output in_memory feature classes to shapefiles for debugging
  • Output map documents to mxds for debugging
  • All Geoprocessing services have a built-in file upload option that you can take advantage of
  • For performance reasons, use synchronous tasks when possible
  • Set logging level to "Info" in geoprocessing tasks to capture excution time of the task
  • Set running instances to 0 for all GP and Mapservices in development to conserve memory on the ArcGIS server
  • Access files on a windows file share in an arcpy script using win_unc
  • Geoprocssing services are running 64bit (c:\PYTHON27\ArcGISx6410.2) python while scripts that are run via ArcCatalog are running under 32bit python (c:\PYTHON27\ArcGIS10.2) you must install both a 32bit and a 64bit python library to be able to publish a GP service

Hacks

  • sql server rowid

About

A carefully curated list of ArcPy tips, tricks, best management practices and most of all...hacks!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages