<?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: Spatial Joining 2 polygon layers based on centroids in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/spatial-joining-2-polygon-layers-based-on/m-p/198663#M15272</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for misreading your question.You can use calculate geometry to get the xy coordinates of the centroid and make an xy event layer based on the coordinates.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Oct 2016 15:12:01 GMT</pubDate>
    <dc:creator>LesiMai3</dc:creator>
    <dc:date>2016-10-19T15:12:01Z</dc:date>
    <item>
      <title>Spatial Joining 2 polygon layers based on centroids</title>
      <link>https://community.esri.com/t5/python-questions/spatial-joining-2-polygon-layers-based-on/m-p/198658#M15267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;The spatial join tool in ArcMap is rather limited. It only looks for intersecting polygons or 'fall completely inside of' polygons:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image" height="482" src="https://community.esri.com/legacyfs/online/247955_pastedImage_1.png" width="334" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to spatially join a polygon to another polygon based on whether the centroid falls within it. Is there another way to do this? Python script maybe?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 14:30:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/spatial-joining-2-polygon-layers-based-on/m-p/198658#M15267</guid>
      <dc:creator>TheoFaull</dc:creator>
      <dc:date>2016-10-19T14:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial Joining 2 polygon layers based on centroids</title>
      <link>https://community.esri.com/t5/python-questions/spatial-joining-2-polygon-layers-based-on/m-p/198659#M15268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not produce the centroid layer, then spatially join it to the other layer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 14:36:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/spatial-joining-2-polygon-layers-based-on/m-p/198659#M15268</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-10-19T14:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial Joining 2 polygon layers based on centroids</title>
      <link>https://community.esri.com/t5/python-questions/spatial-joining-2-polygon-layers-based-on/m-p/198660#M15269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Theo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Under the select by location tool, there is an option to select features that have their centroids falling in the source layer feature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/247945_pastedImage_1.png" /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lesi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 14:41:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/spatial-joining-2-polygon-layers-based-on/m-p/198660#M15269</guid>
      <dc:creator>LesiMai3</dc:creator>
      <dc:date>2016-10-19T14:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial Joining 2 polygon layers based on centroids</title>
      <link>https://community.esri.com/t5/python-questions/spatial-joining-2-polygon-layers-based-on/m-p/198661#M15270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know, and that's useful for Selecting. But I'm looking to do a spatial join. I have hundreds and thousands of shapes within each layer, all with multiple attribute variation. &lt;A href="https://community.esri.com/migrated-users/219827"&gt;Lesi Mai&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 14:58:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/spatial-joining-2-polygon-layers-based-on/m-p/198661#M15270</guid>
      <dc:creator>TheoFaull</dc:creator>
      <dc:date>2016-10-19T14:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial Joining 2 polygon layers based on centroids</title>
      <link>https://community.esri.com/t5/python-questions/spatial-joining-2-polygon-layers-based-on/m-p/198662#M15271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmmm yes I could create a whole new centroid layer... Could you tell me (or point me in the right direction) how to go about this? I only have a basic license bear in mind. &lt;A href="https://community.esri.com/people/Dan_Patterson"&gt;Dan_Patterson&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 15:00:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/spatial-joining-2-polygon-layers-based-on/m-p/198662#M15271</guid>
      <dc:creator>TheoFaull</dc:creator>
      <dc:date>2016-10-19T15:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial Joining 2 polygon layers based on centroids</title>
      <link>https://community.esri.com/t5/python-questions/spatial-joining-2-polygon-layers-based-on/m-p/198663#M15272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for misreading your question.You can use calculate geometry to get the xy coordinates of the centroid and make an xy event layer based on the coordinates.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 15:12:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/spatial-joining-2-polygon-layers-based-on/m-p/198663#M15272</guid>
      <dc:creator>LesiMai3</dc:creator>
      <dc:date>2016-10-19T15:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial Joining 2 polygon layers based on centroids</title>
      <link>https://community.esri.com/t5/python-questions/spatial-joining-2-polygon-layers-based-on/m-p/198664#M15273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sadly &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/feature-to-point.htm"&gt;FeatureToPoint&lt;/A&gt; requires an advanced license... so as suggested below, But everyone has &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/add-xy-coordinates.htm"&gt;Add XY&lt;/A&gt; coordinates, then you just add the table back in (File, Add Data, Add XY data) and save it back out to its own feature class.&lt;/P&gt;&lt;P&gt;Such unnecessary steps.&amp;nbsp; You can do this by other means, but the workflow is only 10s of seconds to complete&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 15:18:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/spatial-joining-2-polygon-layers-based-on/m-p/198664#M15273</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-10-19T15:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial Joining 2 polygon layers based on centroids</title>
      <link>https://community.esri.com/t5/python-questions/spatial-joining-2-polygon-layers-based-on/m-p/198665#M15274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/analysis-toolbox/spatial-join.htm"&gt;Spatial Join&lt;/A&gt; geoprocessing tool has many more options than the menu spatial join tool, one of which is HAVE_THEIR_CENTER_IN.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/248016_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 16:25:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/spatial-joining-2-polygon-layers-based-on/m-p/198665#M15274</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2016-10-19T16:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial Joining 2 polygon layers based on centroids</title>
      <link>https://community.esri.com/t5/python-questions/spatial-joining-2-polygon-layers-based-on/m-p/198666#M15275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/people/dkwiens"&gt;dkwiens&lt;/A&gt;‌ thank you so much. This is the answer I was hoping for! You've saved me having to go through all the steps of converting polygons to XY event layer points, then joining that to my join layer.&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2016 10:34:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/spatial-joining-2-polygon-layers-based-on/m-p/198666#M15275</guid>
      <dc:creator>TheoFaull</dc:creator>
      <dc:date>2016-11-09T10:34:02Z</dc:date>
    </item>
  </channel>
</rss>

