New to Python and going through GIS Tutorial for Python Scripting

المشرف العام

Administrator
طاقم الإدارة
I'm following the Tutorial directions and I've tried some alternative approaches but PyScripter keeps coming back with the exception message: Process did not complete.

try: #Import Python modules import arcpy from arcpy import env #Set the workspace environment env.workspace = r"C:\GISTutorial_for_PyScripting\GISTPython\Data\City of Oleander.gdb" #ENTER CODE arcpy.Union_analysis(in_features="Parcels #;ZoningDistricts #", out_feature_class="C:/GISTutorial_for_PyScripting/GISTPython/MyExercises/MyAnswers.gdb/UnionTemp", join_attributes="ALL", cluster_tolerance="#", gaps="GAPS") # Replace a layer/table view name with a path to a dataset (which can be a layer file) or create the layer/table view within the script # The following inputs are layers or table views: "UnionTemp" arcpy.Select_analysis(in_features=r"C:/GISTutorial_for_PyScripting/GISTPython/MyExercises/MyAnswers.gdb/UnionTemp", out_feature_class=r"C:/GISTutorial_for_PyScripting/GISTPython/MyExercises/MyAnswers.gdb/UnionFinal", where_clause="FID_ZoningDistricts -1") #Delete TempUnion file from geodb # Replace a layer/table view name with a path to a dataset (which can be a layer file) or create the layer/table view within the script # The following inputs are layers or table views: "UnionTemp" arcpy.Delete_management(in_data="C:/GISTutorial_for_PyScripting/GISTPython/MyExercises/MyAnswers.gdb/UnionTemp", data_type="FeatureClass") #Determine Results print "New feature class has been created"except: print "Process did not complete"

أكثر...
 
أعلى