<?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 The intersection of two polygons in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/the-intersection-of-two-polygons/m-p/235940#M18332</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Now I have two shapes of polygons, how to get the intersection area of them?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried: interShp = Shp1.intersection(shp2), but it does not work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 18 Nov 2012 00:56:34 GMT</pubDate>
    <dc:creator>XintaoLiu</dc:creator>
    <dc:date>2012-11-18T00:56:34Z</dc:date>
    <item>
      <title>The intersection of two polygons</title>
      <link>https://community.esri.com/t5/python-questions/the-intersection-of-two-polygons/m-p/235940#M18332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Now I have two shapes of polygons, how to get the intersection area of them?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried: interShp = Shp1.intersection(shp2), but it does not work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Nov 2012 00:56:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/the-intersection-of-two-polygons/m-p/235940#M18332</guid>
      <dc:creator>XintaoLiu</dc:creator>
      <dc:date>2012-11-18T00:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: The intersection of two polygons</title>
      <link>https://community.esri.com/t5/python-questions/the-intersection-of-two-polygons/m-p/235941#M18333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use geometry objects with the Intersect tool, see this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//002z0000001z000000"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//002z0000001z000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In your case as you've described it, you would create 2 objects to enter as input, potentially writing a 3rd geom object or write the output to a new shapefile or fc.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Nov 2012 14:34:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/the-intersection-of-two-polygons/m-p/235941#M18333</guid>
      <dc:creator>T__WayneWhitley</dc:creator>
      <dc:date>2012-11-18T14:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: The intersection of two polygons</title>
      <link>https://community.esri.com/t5/python-questions/the-intersection-of-two-polygons/m-p/235942#M18334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What you are trying to do will work with arcpy 10.0 or 10.1.&amp;nbsp; But you are calling the geometry object method wrong:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt; interShp = Shp1.intersect(shp2, 4)&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not "intersection, but "intersect."&amp;nbsp; And you need the 2nd arg, the dimension of the output geometry.&amp;nbsp; You said area, so that would be 4.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;good luck&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Nov 2012 20:15:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/the-intersection-of-two-polygons/m-p/235942#M18334</guid>
      <dc:creator>MikeHunter</dc:creator>
      <dc:date>2012-11-18T20:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: The intersection of two polygons</title>
      <link>https://community.esri.com/t5/python-questions/the-intersection-of-two-polygons/m-p/235943#M18335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What you are trying to do will work with arcpy 10.0 or 10.1.&amp;nbsp; But you are calling the geometry object method wrong:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
 interShp = Shp1.intersect(shp2, 4)
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;Not "intersection, but "intersect."&amp;nbsp; And you need the 2nd arg, the dimension of the output geometry.&amp;nbsp; You said area, so that would be 4.&lt;BR /&gt;&lt;BR /&gt;good luck&lt;BR /&gt;Mike&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you so muck! It works! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By the way, where can I find such specific reference and examples to read? Thank you again.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 11:53:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/the-intersection-of-two-polygons/m-p/235943#M18335</guid>
      <dc:creator>XintaoLiu</dc:creator>
      <dc:date>2021-12-11T11:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: The intersection of two polygons</title>
      <link>https://community.esri.com/t5/python-questions/the-intersection-of-two-polygons/m-p/235944#M18336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am not using 10.1 yet but found the method, intersect(other, dimension), documented here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//018z00000061000000"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//018z00000061000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Mike, I was unaware of this and although I couldn't find the specific doc for 10.0, I will try this out tomorrow.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2012 00:39:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/the-intersection-of-two-polygons/m-p/235944#M18336</guid>
      <dc:creator>T__WayneWhitley</dc:creator>
      <dc:date>2012-11-19T00:39:45Z</dc:date>
    </item>
  </channel>
</rss>

