<?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: measure distance between points, - taking terrain elevatin into account. in ArcGIS Network Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-network-analyst-questions/measure-distance-between-points-taking-terrain/m-p/202259#M2023</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;EDIT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;It appears the question was edited to simplify the problem to ignore terrain or 3D distance so ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--------------------- to original question&lt;/P&gt;&lt;P&gt;You need the 3D analyst&lt;/P&gt;&lt;P&gt;Depending how you want to do it,you can produce graphs using the 3D toolbar or you can use one of the tools in arctoolbox perhaps the Add Surface Information tool, if you already have shapes, particularly polylines.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="180873" alt="3Dmenu.png" class="image-1 jive-image" height="286" src="https://community.esri.com/legacyfs/online/180873_3Dmenu.png" style="width: 239px; height: 285.56px;" width="239" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Feb 2016 15:01:07 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2016-02-11T15:01:07Z</dc:date>
    <item>
      <title>measure distance between points, - taking terrain elevatin into account.</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/measure-distance-between-points-taking-terrain/m-p/202257#M2021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok I'm changing this, it just got simpler.&amp;nbsp; Yes- and I have 10.1 advanced, and enterprise server- with spatial analyst, 3d and network analyst.&lt;/P&gt;&lt;P&gt;don't care about topography&lt;/P&gt;&lt;P&gt;They pass us a location, that will be a point from one of a series of preexisting layers (which may include lat long or mailing address, but not generally. Generally it will be a preexisting point for a point layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We need to measure a straight line from that - selected point - to a bunch of points in 1 other layer. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's it. - looking for an output of a table of distances and point information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 13:37:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/measure-distance-between-points-taking-terrain/m-p/202257#M2021</guid>
      <dc:creator>LisaKing1</dc:creator>
      <dc:date>2016-02-11T13:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: measure distance between points, - taking terrain elevatin into account.</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/measure-distance-between-points-taking-terrain/m-p/202258#M2022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This sounds like a &lt;A href="https://community.esri.com/space/2091"&gt;Spatial Analyst&lt;/A&gt;​ function. Do you have a spatial analyst license?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit:&lt;/P&gt;&lt;P&gt;maybe &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/spatial-analyst-toolbox/how-the-path-distance-tools-work.htm" title="http://desktop.arcgis.com/en/arcmap/latest/tools/spatial-analyst-toolbox/how-the-path-distance-tools-work.htm"&gt;How the path distance tools work—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 14:28:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/measure-distance-between-points-taking-terrain/m-p/202258#M2022</guid>
      <dc:creator>WesMiller</dc:creator>
      <dc:date>2016-02-11T14:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: measure distance between points, - taking terrain elevatin into account.</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/measure-distance-between-points-taking-terrain/m-p/202259#M2023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;EDIT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;It appears the question was edited to simplify the problem to ignore terrain or 3D distance so ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--------------------- to original question&lt;/P&gt;&lt;P&gt;You need the 3D analyst&lt;/P&gt;&lt;P&gt;Depending how you want to do it,you can produce graphs using the 3D toolbar or you can use one of the tools in arctoolbox perhaps the Add Surface Information tool, if you already have shapes, particularly polylines.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="180873" alt="3Dmenu.png" class="image-1 jive-image" height="286" src="https://community.esri.com/legacyfs/online/180873_3Dmenu.png" style="width: 239px; height: 285.56px;" width="239" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 15:01:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/measure-distance-between-points-taking-terrain/m-p/202259#M2023</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-02-11T15:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: measure distance between points, - taking terrain elevatin into account.</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/measure-distance-between-points-taking-terrain/m-p/202260#M2024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you're only interested in the straight-line 3d distance between points, you can use good-old math to figure it out without 3D Analyst:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; sr = arcpy.Describe("valley_pt_elev").spatialReference # spatial ref
... with arcpy.da.SearchCursor("valley_pt_elev","SHAPE@",spatial_reference=sr) as sCursor: # get original point geometry
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for sRow in sCursor:
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; orig_point = sRow[0].centroid
... with arcpy.da.UpdateCursor("mtn_pnts_elev",["SHAPE@","dist_3d"],spatial_reference=sr) as uCursor: # loop through other points
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for uRow in uCursor:
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; point = uRow[0].centroid
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dx = point.X - orig_point.X
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dy = point.Y - orig_point.Y
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dz = point.Z - orig_point.Z
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hor_dist = math.sqrt(math.pow(dx,2) + math.pow(dy,2)) # calculate horizontal distance
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dist_3d = math.sqrt(math.pow(dz,2) + math.pow(hor_dist,2)) # calculate 3d distance
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print(dx,dy,dz,dist_3d,hor_dist,uRow[0].distanceTo(orig_point)&amp;nbsp; )&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; uRow[1] = dist_3d 
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; uCursor.updateRow(uRow) # update 3d distance field&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:02:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/measure-distance-between-points-taking-terrain/m-p/202260#M2024</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2021-12-11T10:02:48Z</dc:date>
    </item>
  </channel>
</rss>

