<?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: Identify a polygon to the right or left of a line in Spatial Data Science Questions</title>
    <link>https://community.esri.com/t5/spatial-data-science-questions/identify-a-polygon-to-the-right-or-left-of-a-line/m-p/1247404#M1860</link>
    <description>&lt;P&gt;Anyone find a solution/calculation for this? I located a rule attribute in the Address Data Management Solution, but it is not working.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Jan 2023 19:53:22 GMT</pubDate>
    <dc:creator>datasolutions</dc:creator>
    <dc:date>2023-01-11T19:53:22Z</dc:date>
    <item>
      <title>Identify a polygon to the right or left of a line</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/identify-a-polygon-to-the-right-or-left-of-a-line/m-p/85614#M168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a road line feature class and a city township unit polygon feature class.&amp;nbsp; One of the requirements of the line feature class is that I need to correctly identify which polygon is on either side of the line.&amp;nbsp; The closest solution I found thus far makes the assumption that the line is strait.&amp;nbsp; However, it is very possible that the line could be curved as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are a couple ways that I could perform this, but I don't know how to implement these solutions.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Perhaps there is already a geoprocessing tool, python script, or Aracade script that can already do this.&amp;nbsp; This would be preferred.&lt;/LI&gt;&lt;LI&gt;If I could create a point halfway down the line that is offset to the right or left by several feet then I could use that point to identify the line and rejoin the needed point value back into the correct field in the line feature.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should be very similar to the calculate adjacent fields, except it should identify values to the right or left of a line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2020 13:04:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/identify-a-polygon-to-the-right-or-left-of-a-line/m-p/85614#M168</guid>
      <dc:creator>MarkVolz</dc:creator>
      <dc:date>2020-08-20T13:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: Identify a polygon to the right or left of a line</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/identify-a-polygon-to-the-right-or-left-of-a-line/m-p/85615#M169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suggest you look at this &lt;A _jive_internal="true" href="https://community.esri.com/thread/117122"&gt;thread&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2020 13:50:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/identify-a-polygon-to-the-right-or-left-of-a-line/m-p/85615#M169</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2020-08-21T13:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: Identify a polygon to the right or left of a line</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/identify-a-polygon-to-the-right-or-left-of-a-line/m-p/1247404#M1860</link>
      <description>&lt;P&gt;Anyone find a solution/calculation for this? I located a rule attribute in the Address Data Management Solution, but it is not working.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 19:53:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/identify-a-polygon-to-the-right-or-left-of-a-line/m-p/1247404#M1860</guid>
      <dc:creator>datasolutions</dc:creator>
      <dc:date>2023-01-11T19:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Identify a polygon to the right or left of a line</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/identify-a-polygon-to-the-right-or-left-of-a-line/m-p/1389445#M1877</link>
      <description>&lt;P&gt;I just figured this out the other day.&amp;nbsp; You can use the &lt;A href="https://developers.arcgis.com/arcade/function-reference/geometry_functions/#offset" target="_self"&gt;Offset&lt;/A&gt; function in Arcade.&amp;nbsp; Here's the code that I use to calculate the neighborhood on the left-side of a road segment.&lt;/P&gt;&lt;PRE&gt;//Set the neighborhood dataset, selecting only the neighborhood name field.&lt;BR /&gt;var fsNbrhd = FeatureSetByName($datastore, "GIS.DBO.Neighborhood", ["nbrhdname"])&lt;BR /&gt;&lt;BR /&gt;//Specifies the left-side of the road. If the offset is greater than 0, it will be the right-side.&lt;BR /&gt;var RoadLeft = offset($feature, -1, 'feet', 'square')&lt;BR /&gt;&lt;BR /&gt;//Selects the neighborhood polygon on the left-side of the road.&lt;BR /&gt;var fsNbrhdLeft = Intersects(fsNbrhd, RoadLeft)&lt;BR /&gt;&lt;BR /&gt;//Returns only the first intersecting polygon, in case there are overlaps.&lt;BR /&gt;var NbrhdLeft = First(fsNbrhdLeft)&lt;BR /&gt;&lt;BR /&gt;if(NbrhdLeft == null) return null&lt;BR /&gt;&lt;BR /&gt;//Returns the name of the first intersecting neighborhood polygon on the left-side of the road segment.&lt;BR /&gt;return NbrhdLeft.nbrhdname&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 14:33:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/identify-a-polygon-to-the-right-or-left-of-a-line/m-p/1389445#M1877</guid>
      <dc:creator>JoshSaad1</dc:creator>
      <dc:date>2024-03-01T14:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Identify a polygon to the right or left of a line</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/identify-a-polygon-to-the-right-or-left-of-a-line/m-p/1395581#M1880</link>
      <description>&lt;P&gt;Thanks for posting that! That's a clever way of doing it. This is going to be so helpful.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 21:17:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/identify-a-polygon-to-the-right-or-left-of-a-line/m-p/1395581#M1880</guid>
      <dc:creator>ChelseaRozek</dc:creator>
      <dc:date>2024-03-13T21:17:00Z</dc:date>
    </item>
  </channel>
</rss>

