<?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 Intersect with the center of a polygon in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/intersect-with-the-center-of-a-polygon/m-p/1536487#M88048</link>
    <description>&lt;P&gt;I have a lot of 250m square polygons, and I want to add the location based on a grid I have to an attribute table field. How do I set the intersection to use the center of the polygon? I've noticed sometimes it pulls the grid location from the upper left of the 250m polygon, but I want it to use the center.&lt;/P&gt;&lt;P&gt;Example image below, it populated it with B-55, but it should be C-45&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IanLadd_Tourmaline_0-1725898255135.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/114599iC6BEE9A1B43A045F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="IanLadd_Tourmaline_0-1725898255135.png" alt="IanLadd_Tourmaline_0-1725898255135.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var land = FeatureSetByName($datastore,"Grid_BC_IHS_NTS_QTR_TH_NR_27",["QTR_UNIT","UNIT","BLOCK","SHEET","LQ","PQ"], true)&lt;BR /&gt;var intersectLayer = Intersects(land, Geometry($feature))&lt;BR /&gt;if (Count(intersectLayer) &amp;gt; 0) {&lt;BR /&gt;for (var layer in intersectLayer) {&lt;BR /&gt;return layer.QTR_UNIT+("-")+layer.UNIT+("-")+layer.BLOCK+("/")+layer.PQ+("-")+layer.LQ+("-")+layer.SHEET;&lt;BR /&gt;}&lt;BR /&gt;} else {&lt;BR /&gt;return null;&lt;BR /&gt;}&lt;/P&gt;</description>
    <pubDate>Mon, 09 Sep 2024 16:11:33 GMT</pubDate>
    <dc:creator>IanLadd_Tourmaline</dc:creator>
    <dc:date>2024-09-09T16:11:33Z</dc:date>
    <item>
      <title>Intersect with the center of a polygon</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/intersect-with-the-center-of-a-polygon/m-p/1536487#M88048</link>
      <description>&lt;P&gt;I have a lot of 250m square polygons, and I want to add the location based on a grid I have to an attribute table field. How do I set the intersection to use the center of the polygon? I've noticed sometimes it pulls the grid location from the upper left of the 250m polygon, but I want it to use the center.&lt;/P&gt;&lt;P&gt;Example image below, it populated it with B-55, but it should be C-45&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IanLadd_Tourmaline_0-1725898255135.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/114599iC6BEE9A1B43A045F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="IanLadd_Tourmaline_0-1725898255135.png" alt="IanLadd_Tourmaline_0-1725898255135.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var land = FeatureSetByName($datastore,"Grid_BC_IHS_NTS_QTR_TH_NR_27",["QTR_UNIT","UNIT","BLOCK","SHEET","LQ","PQ"], true)&lt;BR /&gt;var intersectLayer = Intersects(land, Geometry($feature))&lt;BR /&gt;if (Count(intersectLayer) &amp;gt; 0) {&lt;BR /&gt;for (var layer in intersectLayer) {&lt;BR /&gt;return layer.QTR_UNIT+("-")+layer.UNIT+("-")+layer.BLOCK+("/")+layer.PQ+("-")+layer.LQ+("-")+layer.SHEET;&lt;BR /&gt;}&lt;BR /&gt;} else {&lt;BR /&gt;return null;&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 16:11:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/intersect-with-the-center-of-a-polygon/m-p/1536487#M88048</guid>
      <dc:creator>IanLadd_Tourmaline</dc:creator>
      <dc:date>2024-09-09T16:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: Intersect with the center of a polygon</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/intersect-with-the-center-of-a-polygon/m-p/1536531#M88055</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/734693"&gt;@IanLadd_Tourmaline&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know this isn't a direct answer to your question, but you can use the Feature To Point tool that will create a point at the direct center of the polygon, which you can then use to run your tool, I used this on a similar issue where the center of a polygon was very important.&lt;/P&gt;&lt;P&gt;Cody&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 17:55:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/intersect-with-the-center-of-a-polygon/m-p/1536531#M88055</guid>
      <dc:creator>CodyPatterson</dc:creator>
      <dc:date>2024-09-09T17:55:14Z</dc:date>
    </item>
  </channel>
</rss>

