AnsweredAssumed Answered

Working with Union

Question asked by hcu_basti on Mar 26, 2012
Latest reply on Mar 26, 2012 by hcu_basti
Hey everyone

i just started coding with pythonwin for ArcGis 10

and i got a question - iam trying to union 2 maps... if i try it in arcgis by hand its working fine but with python i get an error

import arcpy from arcpy import env  #Folder env.workspace="P:/workspace"  # file kreisumring and gemeinden at workspace folder  inCover="Kreisumring" unionCover="Gemeinden" outCover="P:/workspace/vereinigt" joinAttributes = "JOIN" arcpy.Union_arc(inCover, unionCover, outCover, "", joinAttributes)

Errors:
ERROR 000732: Input Coverage: Dataset kreisumring does not exist or is not supported ERROR 000732: Union Coverage: Dataset gemeinden does not exist or is not supported Failed to execute (Union).


existing files (for gemeinden aswell):
kreisumring.dbf
kreisumring.prj
kreisumring.sbn
kreisumring.sbx
kreisumring.shp

i searched alot... but didnt found something usefull -  ofc i searched at desktop help 10. (as you can see :P )

thank you for any kind of help !

Outcomes