Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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?

share|improve this question
add comment

1 Answer

up vote 7 down vote accepted

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
share|improve this answer
    
Thanks Roy. Good resource there! –  LarsVegas Oct 24 '12 at 14:15
1  
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 '12 at 8:45
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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