8

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?

1 Answer 1

8

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
1
  • 2
    One little comment: 2. Replace all gp. with arcpy isn't really needed if you assign your import to gp, lik so: import arcpy gp = arcpy. Which also makes 5. obsolete, as well.
    – LarsVegas
    Oct 26, 2012 at 8:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.