<?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 Re: Intersecting polygons of same feature class in ArcAPI Questions</title>
    <link>https://community.esri.com/t5/arcapi-questions/intersecting-polygons-of-same-feature-class/m-p/780834#M40</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello people, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for making an efforts for replying. In my case there were two sets of feature class (Polygons). Both had some overlapping polygons and some were not overlapping. I had to get the intersection of both these files, as in area which is common for all the polygons.&amp;nbsp; So my approach was:&lt;/P&gt;&lt;P&gt;1)&amp;nbsp; Intersected both the files.&lt;/P&gt;&lt;P&gt;2) Union the result of above step&lt;/P&gt;&lt;P&gt;3) Convert it to Feature to Polygon &lt;/P&gt;&lt;P&gt;4)&amp;nbsp; Polygon to Point&lt;/P&gt;&lt;P&gt;5) Than Using "Select by location"&amp;nbsp; selected the polygon in which my centroid (Point) is lying. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Though I'm getting the correct result. Please let me know if I'm following the right path, if not- what will be the best trick of doing it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and keep sharing &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;- Akshay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 25 Jun 2016 14:54:39 GMT</pubDate>
    <dc:creator>akshayloya</dc:creator>
    <dc:date>2016-06-25T14:54:39Z</dc:date>
    <item>
      <title>Intersecting polygons of same feature class</title>
      <link>https://community.esri.com/t5/arcapi-questions/intersecting-polygons-of-same-feature-class/m-p/780824#M30</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a feature class. It has polygons, some are overlapping and some are not. I want to get the intersection of those overlapping polygon in arcmap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do that? Any help will be greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2016 16:48:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcapi-questions/intersecting-polygons-of-same-feature-class/m-p/780824#M30</guid>
      <dc:creator>akshayloya</dc:creator>
      <dc:date>2016-06-21T16:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: Intersecting polygons of same feature class</title>
      <link>https://community.esri.com/t5/arcapi-questions/intersecting-polygons-of-same-feature-class/m-p/780825#M31</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Depending on what the purpose is, you can setup a topology and add rules to it to identify where those polygons intersect (overlap).&amp;nbsp; Let us know your purpose and it might help identify the best solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2016 16:51:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcapi-questions/intersecting-polygons-of-same-feature-class/m-p/780825#M31</guid>
      <dc:creator>andrewj_ca</dc:creator>
      <dc:date>2016-06-21T16:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: Intersecting polygons of same feature class</title>
      <link>https://community.esri.com/t5/arcapi-questions/intersecting-polygons-of-same-feature-class/m-p/780826#M32</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://"&gt;http://&lt;/A&gt;&lt;IMG alt="Pic2.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/208480_Pic2.png" style="width: 620px; height: 262px;" /&gt;&lt;/P&gt;&lt;P&gt;PFA image. I want to get the area marked in red. It is common area between all the intersections.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2016 17:02:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcapi-questions/intersecting-polygons-of-same-feature-class/m-p/780826#M32</guid>
      <dc:creator>akshayloya</dc:creator>
      <dc:date>2016-06-21T17:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: Intersecting polygons of same feature class</title>
      <link>https://community.esri.com/t5/arcapi-questions/intersecting-polygons-of-same-feature-class/m-p/780827#M33</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Akshay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://pro.arcgis.com/en/pro-app/tool-reference/analysis/intersect.htm"&gt;Intersect (Analysis Toolbox)&lt;/A&gt;​ should work for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Micah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2016 17:05:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcapi-questions/intersecting-polygons-of-same-feature-class/m-p/780827#M33</guid>
      <dc:creator>MicahBabinski</dc:creator>
      <dc:date>2016-06-21T17:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: Intersecting polygons of same feature class</title>
      <link>https://community.esri.com/t5/arcapi-questions/intersecting-polygons-of-same-feature-class/m-p/780828#M34</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Micah,&lt;/P&gt;&lt;P&gt;Intersection works fine when I have only 2 polygons overlapping.&lt;/P&gt;&lt;P&gt;Akshay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2016 17:14:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcapi-questions/intersecting-polygons-of-same-feature-class/m-p/780828#M34</guid>
      <dc:creator>akshayloya</dc:creator>
      <dc:date>2016-06-21T17:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: Intersecting polygons of same feature class</title>
      <link>https://community.esri.com/t5/arcapi-questions/intersecting-polygons-of-same-feature-class/m-p/780829#M35</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;Hi Akshay,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;What about this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;Step 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Polygon To Line&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;Creates a feature class containing lines that are converted from polygon boundaries with or without considering neighboring polygons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then bring it back together like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 2&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Feature To Polygon&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;Creates a feature class containing polygons generated from areas enclosed by input line or polygon features.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This effectively splits it all up and then reassembles individual polygons.&amp;nbsp; Area should be simple from there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2016 17:25:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcapi-questions/intersecting-polygons-of-same-feature-class/m-p/780829#M35</guid>
      <dc:creator>andrewj_ca</dc:creator>
      <dc:date>2016-06-21T17:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Intersecting polygons of same feature class</title>
      <link>https://community.esri.com/t5/arcapi-questions/intersecting-polygons-of-same-feature-class/m-p/780830#M36</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, so all of the polygons in the image above are in the same feature class? Andrew's solution looks interesting and may work. Otherwise, you could do something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;# import required modules
import arcpy, os

# export each feature into a standalone feature class using a search cursor and the Select GP tool
table = r"Path to your polygon feature class"
fields = ("OBJECTID")
output_workspace = r"path to scratch workspace"
with arcpy.da.SearchCursor(table, fields) as cursor:
&amp;nbsp; for row in cursor:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; exp = '"OBJECTID" = {0}'.format(row[0])
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Select_analysis(table, os.path.join(output_workspace, arcpy.Describe(table).baseName + "_" + str(row[0])), exp)

# create a python list of the feature classes which you just exported
arcpy.env.workspace = output_workspace
fcList = arcpy.ListFeatureClasses("[base name of your feature class]_*")

# perform the intersection using the list of feature classes which you created in the previous step
arcpy.Intersect_analysis(fcList, result_feature_class)&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Really, Esri should just roll the above solution into a new GP tool. Split (analysis) doesn't really do it. Let me know what ends up working for you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Micah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:49:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcapi-questions/intersecting-polygons-of-same-feature-class/m-p/780830#M36</guid>
      <dc:creator>MicahBabinski</dc:creator>
      <dc:date>2021-12-12T08:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Intersecting polygons of same feature class</title>
      <link>https://community.esri.com/t5/arcapi-questions/intersecting-polygons-of-same-feature-class/m-p/780831#M37</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are some ideas here: &lt;A _jive_internal="true" href="https://community.esri.com/message/200113#comment-200113" title="https://community.esri.com/message/200113#comment-200113"&gt;https://community.esri.com/message/200113#comment-200113&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm partial to the solutions offered by Jim W, and... me. &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2016 17:50:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcapi-questions/intersecting-polygons-of-same-feature-class/m-p/780831#M37</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2016-06-21T17:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: Intersecting polygons of same feature class</title>
      <link>https://community.esri.com/t5/arcapi-questions/intersecting-polygons-of-same-feature-class/m-p/780832#M38</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrew ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the detailed reply. It is making that intersecting part as separate polygon but than I have to remove the other polygon also. &lt;/P&gt;&lt;P&gt;PFA image.&lt;IMG alt="Pic3.PNG" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/208506_Pic3.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 01:43:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcapi-questions/intersecting-polygons-of-same-feature-class/m-p/780832#M38</guid>
      <dc:creator>akshayloya</dc:creator>
      <dc:date>2016-06-22T01:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Intersecting polygons of same feature class</title>
      <link>https://community.esri.com/t5/arcapi-questions/intersecting-polygons-of-same-feature-class/m-p/780833#M39</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree - the Union + Find identical method is quick and simple.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 06:01:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcapi-questions/intersecting-polygons-of-same-feature-class/m-p/780833#M39</guid>
      <dc:creator>FC_Basson</dc:creator>
      <dc:date>2016-06-22T06:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Intersecting polygons of same feature class</title>
      <link>https://community.esri.com/t5/arcapi-questions/intersecting-polygons-of-same-feature-class/m-p/780834#M40</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello people, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for making an efforts for replying. In my case there were two sets of feature class (Polygons). Both had some overlapping polygons and some were not overlapping. I had to get the intersection of both these files, as in area which is common for all the polygons.&amp;nbsp; So my approach was:&lt;/P&gt;&lt;P&gt;1)&amp;nbsp; Intersected both the files.&lt;/P&gt;&lt;P&gt;2) Union the result of above step&lt;/P&gt;&lt;P&gt;3) Convert it to Feature to Polygon &lt;/P&gt;&lt;P&gt;4)&amp;nbsp; Polygon to Point&lt;/P&gt;&lt;P&gt;5) Than Using "Select by location"&amp;nbsp; selected the polygon in which my centroid (Point) is lying. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Though I'm getting the correct result. Please let me know if I'm following the right path, if not- what will be the best trick of doing it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and keep sharing &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;- Akshay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jun 2016 14:54:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcapi-questions/intersecting-polygons-of-same-feature-class/m-p/780834#M40</guid>
      <dc:creator>akshayloya</dc:creator>
      <dc:date>2016-06-25T14:54:39Z</dc:date>
    </item>
  </channel>
</rss>

