<?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 Attribute Rule to Transfer Line to Point Fields using Arcade in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/attribute-rule-to-transfer-line-to-point-fields/m-p/1408510#M58599</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;In the process of trying to return field from line geometry inside of attribute rule for point geometry.&amp;nbsp;For visual reference I want to return the Max Downstream Invert value of the two highlighted lines (mains) intersecting with the point (manhole) to the point feature, ignoring the third main that intersects at starting vertex instead of the end.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AnnaPultro_1-1712842654697.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/100669iD1C3E8DCBD0A5C80/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AnnaPultro_1-1712842654697.png" alt="AnnaPultro_1-1712842654697.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am able to collect data from a point, populate line geometry with that information, and use Geometry functions to call which end is intersecting with the point. Has anyone had success doing the reverse or have thoughts on how to call geometry path of a line within point features?&lt;/P&gt;&lt;P&gt;Arcade Expression for gathering point data within Line Feature (&lt;STRONG&gt;this works!)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;var g = Geometry($feature);&lt;BR /&gt;var fromPointGeometry = g.paths[-1][-1];&lt;BR /&gt;var ManholeRim = FeatureSetByName($datastore, "SewerDevice", ["RIMELEVATION"], false);&lt;BR /&gt;var fromPoint = First(Intersects(ManholeRim, fromPointGeometry ))&lt;BR /&gt;if (fromPoint == null) return&lt;BR /&gt;return fromPoint.RIMELEVATION - $feature.DEPTHDOWNSTREAM&lt;/P&gt;&lt;P&gt;Arcade Expression for gathering end vertex line data within Point Feature (pulls a number but is not correct since there is no argument that specifies which part of the line to pull data from)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;var g = Geometry($feature)&lt;BR /&gt;&lt;STRONG&gt;var highpipeelev = FeatureSetByName($datastore, "SewerLine", ["DOWNSTREAMINVERT"], true)&lt;BR /&gt;&lt;STRONG&gt;var fromline = First(Intersects(highpipeelev, g))&lt;BR /&gt;&lt;STRONG&gt;var max_elev = Max(highpipeelev, "DOWNSTREAMINVERT")&lt;BR /&gt;&lt;STRONG&gt;if (fromline != null)&lt;BR /&gt;&lt;STRONG&gt;return max_elev&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;When attempting to call .paths for line geometry, I am getting an error stating unexpected null (on the var gg line)&lt;/P&gt;&lt;P&gt;var g = Geometry($feature)&lt;BR /&gt;var highpipeelev = FeatureSetByName($datastore, "SewerLine", ["DOWNSTREAMINVERT"], true)&lt;BR /&gt;&lt;STRONG&gt;var gg = Geometry(highpipeelev).paths[-1][-1]&lt;/STRONG&gt;&lt;BR /&gt;var fromline = First(Intersects(highpipeelev, g))&lt;BR /&gt;var max_elev = Max(highpipeelev, "DOWNSTREAMINVERT")&lt;BR /&gt;if (fromline != null)&lt;BR /&gt;return max_elev&lt;/P&gt;&lt;P&gt;Same question asked on a different platform here without any response atm&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;A href="https://gis.stackexchange.com/questions/474591/attribute-rules-for-arcgis-pro-to-transfer-attribute-from-line-to-point" target="_blank" rel="noopener"&gt;arcade - Attribute Rules for ArcGIS Pro to transfer attribute from Line to Point - Geographic Information Systems Stack Exchange&lt;/A&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;A href="https://gis.stackexchange.com/questions/474591/attribute-rules-for-arcgis-pro-to-transfer-attribute-from-line-to-point" target="_blank" rel="noopener"&gt;&lt;BR /&gt;&lt;/A&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Updating Media&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;Arcade error for line geometry paths variable&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 15 Apr 2024 00:57:03 GMT</pubDate>
    <dc:creator>AnnaPultro</dc:creator>
    <dc:date>2024-04-15T00:57:03Z</dc:date>
    <item>
      <title>Attribute Rule to Transfer Line to Point Fields using Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/attribute-rule-to-transfer-line-to-point-fields/m-p/1408510#M58599</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;In the process of trying to return field from line geometry inside of attribute rule for point geometry.&amp;nbsp;For visual reference I want to return the Max Downstream Invert value of the two highlighted lines (mains) intersecting with the point (manhole) to the point feature, ignoring the third main that intersects at starting vertex instead of the end.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AnnaPultro_1-1712842654697.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/100669iD1C3E8DCBD0A5C80/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AnnaPultro_1-1712842654697.png" alt="AnnaPultro_1-1712842654697.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am able to collect data from a point, populate line geometry with that information, and use Geometry functions to call which end is intersecting with the point. Has anyone had success doing the reverse or have thoughts on how to call geometry path of a line within point features?&lt;/P&gt;&lt;P&gt;Arcade Expression for gathering point data within Line Feature (&lt;STRONG&gt;this works!)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;var g = Geometry($feature);&lt;BR /&gt;var fromPointGeometry = g.paths[-1][-1];&lt;BR /&gt;var ManholeRim = FeatureSetByName($datastore, "SewerDevice", ["RIMELEVATION"], false);&lt;BR /&gt;var fromPoint = First(Intersects(ManholeRim, fromPointGeometry ))&lt;BR /&gt;if (fromPoint == null) return&lt;BR /&gt;return fromPoint.RIMELEVATION - $feature.DEPTHDOWNSTREAM&lt;/P&gt;&lt;P&gt;Arcade Expression for gathering end vertex line data within Point Feature (pulls a number but is not correct since there is no argument that specifies which part of the line to pull data from)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;var g = Geometry($feature)&lt;BR /&gt;&lt;STRONG&gt;var highpipeelev = FeatureSetByName($datastore, "SewerLine", ["DOWNSTREAMINVERT"], true)&lt;BR /&gt;&lt;STRONG&gt;var fromline = First(Intersects(highpipeelev, g))&lt;BR /&gt;&lt;STRONG&gt;var max_elev = Max(highpipeelev, "DOWNSTREAMINVERT")&lt;BR /&gt;&lt;STRONG&gt;if (fromline != null)&lt;BR /&gt;&lt;STRONG&gt;return max_elev&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;When attempting to call .paths for line geometry, I am getting an error stating unexpected null (on the var gg line)&lt;/P&gt;&lt;P&gt;var g = Geometry($feature)&lt;BR /&gt;var highpipeelev = FeatureSetByName($datastore, "SewerLine", ["DOWNSTREAMINVERT"], true)&lt;BR /&gt;&lt;STRONG&gt;var gg = Geometry(highpipeelev).paths[-1][-1]&lt;/STRONG&gt;&lt;BR /&gt;var fromline = First(Intersects(highpipeelev, g))&lt;BR /&gt;var max_elev = Max(highpipeelev, "DOWNSTREAMINVERT")&lt;BR /&gt;if (fromline != null)&lt;BR /&gt;return max_elev&lt;/P&gt;&lt;P&gt;Same question asked on a different platform here without any response atm&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;A href="https://gis.stackexchange.com/questions/474591/attribute-rules-for-arcgis-pro-to-transfer-attribute-from-line-to-point" target="_blank" rel="noopener"&gt;arcade - Attribute Rules for ArcGIS Pro to transfer attribute from Line to Point - Geographic Information Systems Stack Exchange&lt;/A&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;A href="https://gis.stackexchange.com/questions/474591/attribute-rules-for-arcgis-pro-to-transfer-attribute-from-line-to-point" target="_blank" rel="noopener"&gt;&lt;BR /&gt;&lt;/A&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Updating Media&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;Arcade error for line geometry paths variable&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 15 Apr 2024 00:57:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/attribute-rule-to-transfer-line-to-point-fields/m-p/1408510#M58599</guid>
      <dc:creator>AnnaPultro</dc:creator>
      <dc:date>2024-04-15T00:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Rule to Transfer Line to Point Fields using Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/attribute-rule-to-transfer-line-to-point-fields/m-p/1408521#M58600</link>
      <description>&lt;P&gt;The variable highpipeelev is a FeatureSet, but Geometry requires a Feature.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var highpipeelev = First(FeatureSetByName($datastore, "SewerLine", ["DOWNSTREAMINVERT"], true));&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 11 Apr 2024 14:19:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/attribute-rule-to-transfer-line-to-point-fields/m-p/1408521#M58600</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2024-04-11T14:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Rule to Transfer Line to Point Fields using Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/attribute-rule-to-transfer-line-to-point-fields/m-p/1409554#M58622</link>
      <description>&lt;P&gt;Ahh thank you, this helps. I think I still need to make a few more adjustments for it to pull the data properly. I found this documentation about updating intersecting features that provides more guidance. When I'm able to implement it to function as asked, I'll post here to provide exact code that worked for me.&amp;nbsp;&lt;A href="https://github.com/Esri/arcade-expressions/blob/master/attribute_rule_calculation/UpdateIntersectingFeature.md" target="_blank" rel="noopener"&gt;https://github.com/Esri/arcade-expressions/blob/master/attribute_rule_calculation/UpdateIntersectingFeature.md&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2024 00:50:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/attribute-rule-to-transfer-line-to-point-fields/m-p/1409554#M58622</guid>
      <dc:creator>AnnaPultro</dc:creator>
      <dc:date>2024-04-15T00:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Rule to Transfer Line to Point Fields using Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/attribute-rule-to-transfer-line-to-point-fields/m-p/1410857#M58688</link>
      <description>&lt;P&gt;Thank you for the input, wanted to update this is what is working for me!&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// get all intersecting lines
var lines = FeaturesetByName($datastore, "Stormwater_Pipe")
var i_lines = Intersects(lines, $feature)

// loop thorugh those lines, return true if any end point intersects $feature
var values = Array(0)
for(var line in i_lines) {
    var end_point = Geometry(line).paths[-1][-1]
    if(Intersects(end_point, $feature)) {
            Push(values, line["Diameter"])
    }
}
return Max(values)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 15:15:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/attribute-rule-to-transfer-line-to-point-fields/m-p/1410857#M58688</guid>
      <dc:creator>AnnaPultro</dc:creator>
      <dc:date>2024-04-19T15:15:26Z</dc:date>
    </item>
  </channel>
</rss>

