<?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 Calculate Slope and Profile in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calculate-slope-and-profile/m-p/174224#M16168</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to write some Javascript to use the ESRI profile service at &lt;/SPAN&gt;&lt;A href="http://sampleserver2.arcgisonline.com/ArcGIS/rest/services/Elevation/ESRI_Elevation_World/GPServer/ProfileService"&gt;http://sampleserver2.arcgisonline.com/ArcGIS/rest/services/Elevation/ESRI_Elevation_World/GPServer/ProfileService&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp; I cannot find any examples on using this tool in the Javascript API.&amp;nbsp; I think I found one for flex, so am trying to break that apart.&amp;nbsp; I can calculate an x, y for a point.&amp;nbsp; Want to draw two points, figure out the distance, and the z values for the points to use in a slope calculation.&amp;nbsp; I want the slope calculation for input into other functions.&amp;nbsp; Does anyone have an idea how to calculate that z value, is it at the profile service, or is there another elevation service I should try to use.&amp;nbsp; This might be a nice addition to the ESRI geometry service which currently calculates x,y values for points, maybe the addition of a z value in that geometry would be nice too.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Mar 2011 14:29:37 GMT</pubDate>
    <dc:creator>dcopple</dc:creator>
    <dc:date>2011-03-02T14:29:37Z</dc:date>
    <item>
      <title>Calculate Slope and Profile</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calculate-slope-and-profile/m-p/174224#M16168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to write some Javascript to use the ESRI profile service at &lt;/SPAN&gt;&lt;A href="http://sampleserver2.arcgisonline.com/ArcGIS/rest/services/Elevation/ESRI_Elevation_World/GPServer/ProfileService"&gt;http://sampleserver2.arcgisonline.com/ArcGIS/rest/services/Elevation/ESRI_Elevation_World/GPServer/ProfileService&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp; I cannot find any examples on using this tool in the Javascript API.&amp;nbsp; I think I found one for flex, so am trying to break that apart.&amp;nbsp; I can calculate an x, y for a point.&amp;nbsp; Want to draw two points, figure out the distance, and the z values for the points to use in a slope calculation.&amp;nbsp; I want the slope calculation for input into other functions.&amp;nbsp; Does anyone have an idea how to calculate that z value, is it at the profile service, or is there another elevation service I should try to use.&amp;nbsp; This might be a nice addition to the ESRI geometry service which currently calculates x,y values for points, maybe the addition of a z value in that geometry would be nice too.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2011 14:29:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calculate-slope-and-profile/m-p/174224#M16168</guid>
      <dc:creator>dcopple</dc:creator>
      <dc:date>2011-03-02T14:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Slope and Profile</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calculate-slope-and-profile/m-p/174225#M16169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The response from the sample profile service is a picture, not actual elevation values.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is a &lt;/SPAN&gt;&lt;A href="http://sampleserver2.arcgisonline.com/ArcGIS/rest/services/Elevation/ESRI_Elevation_World/GPServer/ProfileService/execute?Input_Polylines={%22features%22:[{%22geometry%22:{%22paths%22:[[[-116.015625,39.093748927116394],[-114.609375,39.093748927116394],[-113.90625,39.445311427116394],[-113.203125,39.796873927116394],[-112.1484375,39.796873927116394],[-111.4453125,40.148436427116394],[-111.09375,40.148436427116394],[-110.390625,40.499998927116394],[-109.6875,40.851561427116394],[-109.3359375,40.851561427116394],[-108.6328125,41.203123927116394],[-108.28125,41.203123927116394],[-107.9296875,41.203123927116394],[-107.578125,41.203123927116394],[-107.2265625,41.203123927116394],[-106.875,41.203123927116394],[-106.5234375,41.203123927116394],[-105.8203125,41.203123927116394],[-105.46875,41.203123927116394],[-104.765625,41.203123927116394],[-104.4140625,41.203123927116394],[-103.7109375,41.203123927116394],[-103.359375,41.203123927116394],[-102.65625,41.203123927116394],[-102.3046875,41.203123927116394],[-101.953125,41.203123927116394],[-101.6015625,41.203123927116394],[-101.25,41.203123927116394],[-100.8984375,41.203123927116394],[-100.8984375,41.203123927116394]]]},%22spatialReference%22:{%22wkid%22:4326}}]}&amp;amp;Image_Width=300&amp;amp;Image_Height=300&amp;amp;Display_Segments=true&amp;amp;env:outSR=4326&amp;amp;env:processSR=4326&amp;amp;f=html"&gt;sample&lt;/A&gt;&lt;SPAN&gt; usage.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to perform your own analysis (or create your own graph) you will need to access some elevation data directly. I'm not sure what the best source would be.&amp;nbsp; ESRI host a globe service at&amp;nbsp; &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.esri.com/\\fwphlncmstst001\gis"&gt;\\fwphlncmstst001\gis&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp; but I don't think this is queryable via javascript.&amp;nbsp; Google host elevation data, but I don't know if you use it outside of the google maps API.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any other suggestions?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2011 16:44:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calculate-slope-and-profile/m-p/174225#M16169</guid>
      <dc:creator>BillDaigle</dc:creator>
      <dc:date>2011-03-02T16:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Slope and Profile</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calculate-slope-and-profile/m-p/174226#M16170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've noticed that one, still not quite sure how to do the javascripting.&amp;nbsp; I think an additional geometry tool that ESRI should ad for the future is the ability to get the Z value for a point.&amp;nbsp; Much like the get x,y geometry....&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2011 17:35:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calculate-slope-and-profile/m-p/174226#M16170</guid>
      <dc:creator>dcopple</dc:creator>
      <dc:date>2011-03-02T17:35:30Z</dc:date>
    </item>
  </channel>
</rss>

