<?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: Pull data from sewer line feature to manhole point feature in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/pull-data-from-sewer-line-feature-to-manhole-point/m-p/1411777#M82056</link>
    <description>&lt;P&gt;Related:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-pro-questions/adding-data-from-two-different-layers-into-another/m-p/1387457/highlight/true#M79384" target="_self"&gt;Adding data from two different layers into another layer, stormwater pipes feature IDs&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Apr 2024 17:06:22 GMT</pubDate>
    <dc:creator>Bud</dc:creator>
    <dc:date>2024-04-18T17:06:22Z</dc:date>
    <item>
      <title>Pull data from sewer line feature to manhole point feature</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/pull-data-from-sewer-line-feature-to-manhole-point/m-p/1084413#M43941</link>
      <description>&lt;P&gt;I'm probably in the wrong group but I found something similar to my problem here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-questions/update-attribute-of-intersecting-from-point-of/td-p/1044800" target="_blank"&gt;Update Attribute of Intersecting from Point of Var... - Esri Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I need to calculate the rough depth of a manhole. I can do this by pulling the upstream elevation of an attached pipe and subtracting it from the rim elevation of the manhole.&lt;/P&gt;&lt;P&gt;I have this example that pulls data from a point feature to a line feature and it works for me:&lt;/P&gt;&lt;P&gt;var g = Geometry($feature);&lt;BR /&gt;var fromPointGeometry = g.paths[0][0];&lt;BR /&gt;var fsPoint =FeatureSetByName($datastore, "ssInlet", ["FACILITYID"], false);&lt;BR /&gt;var fromPoint = First(Intersects(fsPoint, fromPointGeometry ) )&lt;BR /&gt;if (fromPoint == null) return&lt;BR /&gt;return fromPoint.FACILITYID;&lt;/P&gt;&lt;P&gt;So I tried this just to pull in a value which I can later subtract from the rim elevation.&lt;/P&gt;&lt;P&gt;var g = Geometry($feature);&lt;BR /&gt;var fromPointGeometry = g.paths[0][0];&lt;BR /&gt;var fsPoint =FeatureSetByName($datastore, "ssGravityMain", ["UPELEV"], false);&lt;BR /&gt;var fromPoint = First(Intersects(fsPoint, fromPointGeometry ) )&lt;BR /&gt;if (fromPoint == null) return&lt;BR /&gt;return fromPoint.UPELEV;&lt;/P&gt;&lt;P&gt;but it throws an error:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error 2717 Invalid Arcade expression, arcade error: Field not found script line 2&lt;/P&gt;&lt;P&gt;I'm not very familiar with Arcade, could someone point out what I need to make this work?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jul 2021 14:37:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/pull-data-from-sewer-line-feature-to-manhole-point/m-p/1084413#M43941</guid>
      <dc:creator>RobertThomsonErase</dc:creator>
      <dc:date>2021-07-30T14:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: Pull data from sewer line feature to manhole point feature</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/pull-data-from-sewer-line-feature-to-manhole-point/m-p/1087842#M44318</link>
      <description>&lt;P&gt;The error is in this line:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var fromPointGeometry = g.paths[0][0];&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What this does is take the first point of the first segment of a line feature. It works in the first expression, because you run it on a line feature. It doesn't work in the second expression, because you run it on a point feature and those don't have the path variable.&lt;/P&gt;&lt;P&gt;This should work:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var g = Geometry($feature)
var fsLine = FeatureSetByName($datastore, "ssGravityMain", ["UPELEV"], true)
var fromLine = First(Intersects(fsLine , g))
if (fromLine == null) { return }
return $feature.RIMELEV - fromLine.UPELEV&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 11 Aug 2021 10:39:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/pull-data-from-sewer-line-feature-to-manhole-point/m-p/1087842#M44318</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2021-08-11T10:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Pull data from sewer line feature to manhole point feature</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/pull-data-from-sewer-line-feature-to-manhole-point/m-p/1087910#M44329</link>
      <description>&lt;P&gt;That's great and will certainly come in handy!&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 14:16:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/pull-data-from-sewer-line-feature-to-manhole-point/m-p/1087910#M44329</guid>
      <dc:creator>RobertThomsonErase</dc:creator>
      <dc:date>2021-08-11T14:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: Pull data from sewer line feature to manhole point feature</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/pull-data-from-sewer-line-feature-to-manhole-point/m-p/1088042#M44349</link>
      <description>&lt;P&gt;As it works now sometimes it picks the wrong value of UPELEV as there are two or more pipes attached to each MH (Possibly several in and one out).&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to have the script look at each value of UPELEV for any line features of SSGravityMain that are connected to the MH (there could be 2 or more) and pick the smallest value which is the invert out?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 18:26:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/pull-data-from-sewer-line-feature-to-manhole-point/m-p/1088042#M44349</guid>
      <dc:creator>RobertThomsonErase</dc:creator>
      <dc:date>2021-08-11T18:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: Pull data from sewer line feature to manhole point feature</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/pull-data-from-sewer-line-feature-to-manhole-point/m-p/1088283#M44371</link>
      <description>&lt;LI-CODE lang="javascript"&gt;var g = Geometry($feature)
var fsLine = FeatureSetByName($datastore, "ssGravityMain", ["UPELEV"], true)
var fromLines = Intersects(fsLine , g)
if (fromLines == null || Count(fromLines) == 0) { return }
return $feature.RIMELEV - Min(fromLines, "UPELEV")&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 12 Aug 2021 05:48:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/pull-data-from-sewer-line-feature-to-manhole-point/m-p/1088283#M44371</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2021-08-12T05:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: Pull data from sewer line feature to manhole point feature</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/pull-data-from-sewer-line-feature-to-manhole-point/m-p/1411163#M81974</link>
      <description>&lt;P&gt;Hey Johannes, this is very helpful, I am trying to pull data only if the point intersects with the end vertex of the line. Currently with this code pulls values from all the lines intersecting the point. Do you know what code I can add to specify the end vertex only? This attribute rule is created within a point geometry feature class. Appreciate any insight you have on this!&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;var g = Geometry($feature);
var sewer_mains = FeatureSetByName($datastore, "SewerLine", ["DOWNSTREAMINVERT"], true);
var connected_mains = Touches(sewer_mains, g);
if (connected_mains == null || Count(connected_mains) == 0) {return}
return Max(connected_mains, "DOWNSTREAMINVERT")&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 17 Apr 2024 19:41:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/pull-data-from-sewer-line-feature-to-manhole-point/m-p/1411163#M81974</guid>
      <dc:creator>AnnaPultro</dc:creator>
      <dc:date>2024-04-17T19:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: Pull data from sewer line feature to manhole point feature</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/pull-data-from-sewer-line-feature-to-manhole-point/m-p/1411777#M82056</link>
      <description>&lt;P&gt;Related:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-pro-questions/adding-data-from-two-different-layers-into-another/m-p/1387457/highlight/true#M79384" target="_self"&gt;Adding data from two different layers into another layer, stormwater pipes feature IDs&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 17:06:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/pull-data-from-sewer-line-feature-to-manhole-point/m-p/1411777#M82056</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2024-04-18T17:06:22Z</dc:date>
    </item>
  </channel>
</rss>

