Tuesday, 9 January 2018

Migrating ArcPy scripts from ArcGIS 9.3 to 10?


What changes are needed to migrate scripts from the ArcGis 9.x environment/gp-object to the ArcGis 10/arcpy environment?


Can anyone provide a good overview what the changes are?


Can someone share pitfalls etc from their own experience?




Answer



GeoChalkboard can give you a good overview of the changes!


Here's the list, but check it out for more detail:



  1. Replace the import statement

  2. Replace all gp. with arcpy.

  3. Check your capitalization.

  4. The result tool is different.

  5. Replace any del gp statements.

  6. The overwrite tool is different.


  7. Import the env module from arcpy.

  8. List item


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...