Select to view content in your preferred language

ArcGIS Viewer for Flex Elevation Profile Widget 3.6

1199
2
Jump to solution
08-06-2014 11:31 AM
MathewSuran
New Contributor III

Can anyone help with changing the code from default kilometers to feet? 

Also, where does this widget reference elevation data when a line is drawn on the base map?  I would assume it accesses the same database that the AGOL Elevations Template uses.  Is there a way to edit where the elevation data comes from, for example, using our own server based GDB DEM?

Thanks,

Mat

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Mat,

  Like most widgets the Elevation Profile widget has a configuration xml file where you can find the unitsAndLabeling element and in there you will see where it is configured for metes and kilometers.

It is using an elevation profile geoprocessing service here http://elevation.arcgis.com/arcgis/rest/services/Tools/ElevationSync/GPServer/Profile/execute

More info on this service here: https://developers.arcgis.com/rest/elevation/

I guess if you get the Geoprocessing service code and add your own data and republish on your own server than you could use your own DEM info.

View solution in original post

0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus

Mat,

  Like most widgets the Elevation Profile widget has a configuration xml file where you can find the unitsAndLabeling element and in there you will see where it is configured for metes and kilometers.

It is using an elevation profile geoprocessing service here http://elevation.arcgis.com/arcgis/rest/services/Tools/ElevationSync/GPServer/Profile/execute

More info on this service here: https://developers.arcgis.com/rest/elevation/

I guess if you get the Geoprocessing service code and add your own data and republish on your own server than you could use your own DEM info.

0 Kudos
MathewSuran
New Contributor III

Thanks, I will look over those resources and see if I can get it to work. 

I messed around with the xml file and changed the label to feet and changed the <multiplyByToConvertFromMeters> value to 3.2808399 since 1 meter=3.2808399 feet.  That seemed to work perfectly.

0 Kudos