<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Working with Union in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/working-with-union/m-p/16132#M1258</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey everyone&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i just started coding with pythonwin for ArcGis 10 &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;import arcpy from arcpy import env&amp;nbsp; #Folder env.workspace="P:/workspace"&amp;nbsp; # file kreisumring and gemeinden at workspace folder&amp;nbsp; inCover="Kreisumring" unionCover="Gemeinden" outCover="P:/workspace/vereinigt" joinAttributes = "JOIN" arcpy.Union_arc(inCover, unionCover, outCover, "", joinAttributes)&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Errors:&lt;/SPAN&gt;&lt;PRE class="plain" name="code"&gt;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).&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;existing files (for gemeinden aswell):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;kreisumring.dbf&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;kreisumring.prj&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;kreisumring.sbn&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;kreisumring.sbx&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;kreisumring.shp&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i searched alot... but didnt found something usefull -&amp;nbsp; ofc i searched at desktop help 10. (as you can see &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt; )&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you for any kind of help !&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Mar 2012 17:09:17 GMT</pubDate>
    <dc:creator>SebastianSieh</dc:creator>
    <dc:date>2012-03-26T17:09:17Z</dc:date>
    <item>
      <title>Working with Union</title>
      <link>https://community.esri.com/t5/python-questions/working-with-union/m-p/16132#M1258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey everyone&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i just started coding with pythonwin for ArcGis 10 &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;import arcpy from arcpy import env&amp;nbsp; #Folder env.workspace="P:/workspace"&amp;nbsp; # file kreisumring and gemeinden at workspace folder&amp;nbsp; inCover="Kreisumring" unionCover="Gemeinden" outCover="P:/workspace/vereinigt" joinAttributes = "JOIN" arcpy.Union_arc(inCover, unionCover, outCover, "", joinAttributes)&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Errors:&lt;/SPAN&gt;&lt;PRE class="plain" name="code"&gt;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).&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;existing files (for gemeinden aswell):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;kreisumring.dbf&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;kreisumring.prj&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;kreisumring.sbn&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;kreisumring.sbx&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;kreisumring.shp&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i searched alot... but didnt found something usefull -&amp;nbsp; ofc i searched at desktop help 10. (as you can see &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt; )&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you for any kind of help !&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2012 17:09:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/working-with-union/m-p/16132#M1258</guid>
      <dc:creator>SebastianSieh</dc:creator>
      <dc:date>2012-03-26T17:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Working with Union</title>
      <link>https://community.esri.com/t5/python-questions/working-with-union/m-p/16133#M1259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try specifying '&lt;/SPAN&gt;&lt;STRONG&gt;.shp&lt;/STRONG&gt;&lt;SPAN&gt;' for your input layers.&amp;nbsp; Ex:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;inCover="kreisumring.shp"
unionCover="gemeinden.shp"&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:39:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/working-with-union/m-p/16133#M1259</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2021-12-10T20:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: Working with Union</title>
      <link>https://community.esri.com/t5/python-questions/working-with-union/m-p/16134#M1260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You need to specify they are shapefiles.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;inCover="kreisumring&lt;/SPAN&gt;&lt;STRONG&gt;.shp&lt;/STRONG&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;unionCover="gemeinden&lt;/SPAN&gt;&lt;STRONG&gt;.shp&lt;/STRONG&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edit: Ah Jake beats me to it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2012 17:20:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/working-with-union/m-p/16134#M1260</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2012-03-26T17:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: Working with Union</title>
      <link>https://community.esri.com/t5/python-questions/working-with-union/m-p/16135#M1261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for this fast replies !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Changed it and still "same" Errors&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;ERROR 000732: Input Coverage: Dataset Kreisumring.shp does not exist or is not supported
ERROR 000732: Union Coverage: Dataset Gemeinden.shp does not exist or is not supported
Failed to execute (Union).&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:39:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/working-with-union/m-p/16135#M1261</guid>
      <dc:creator>SebastianSieh</dc:creator>
      <dc:date>2021-12-10T20:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: Working with Union</title>
      <link>https://community.esri.com/t5/python-questions/working-with-union/m-p/16136#M1262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Looks like you are using the Union_arc tool, which is for coverages.&amp;nbsp; Try the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00080000000s000000.htm"&gt;Union_analysis&lt;/A&gt;&lt;SPAN&gt; tool, which is for feature classes/shapefiles.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2012 17:39:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/working-with-union/m-p/16136#M1262</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2012-03-26T17:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Working with Union</title>
      <link>https://community.esri.com/t5/python-questions/working-with-union/m-p/16137#M1263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are those shapefiles in your workspace directory? Try setting the full path for these variables. And add a .shp to your output as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;inCover="P:/workspace/Kreisumring.shp"
unionCover="P:/workspace/Gemeinden.shp"
outCover="P:/workspace/vereinigt.shp"&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edit: Jake again!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:39:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/working-with-union/m-p/16137#M1263</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2021-12-10T20:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: Working with Union</title>
      <link>https://community.esri.com/t5/python-questions/working-with-union/m-p/16138#M1264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Looks like you are using the Union_arc tool, which is for coverages.&amp;nbsp; Try the &lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00080000000s000000.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;Union_analysis&lt;/A&gt; tool, which is for feature classes/shapefiles.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Are those shapefiles in your workspace directory? Try setting the full path for these variables. And add a .shp to your output as well.&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;inCover="P:/workspace/Kreisumring.shp"
unionCover="P:/workspace/Gemeinden.shp"
outCover="P:/workspace/vereinigt.shp"&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;Edit: Jake again!&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks alot Guys !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;finaly &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;# Import the system modules
import arcpy
from arcpy import env
 
# Set the current workspace 
env.workspace = "P:/workspace"
 

# Union 3 feature classes carry all
inFeatures = ["Kreisumring.shp", "Gemeinden.shp", "Einzelgemeinden.shp"]
outFeatures = "alle"
clusterTol = 0.0000
arcpy.Union_analysis (inFeatures, outFeatures, "ALL", clusterTol)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Well iam not sure about clusterTol but i gonna read the Desktop Help article again !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#Problem solved&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:39:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/working-with-union/m-p/16138#M1264</guid>
      <dc:creator>SebastianSieh</dc:creator>
      <dc:date>2021-12-10T20:39:20Z</dc:date>
    </item>
  </channel>
</rss>

