Select to view content in your preferred language

Image server raster DEM, hillshade download JS code?

331
1
07-11-2013 01:03 PM
Ravichandran_M_Kaushika
Occasional Contributor
dear Readers,

thank you for taking the time to read this article.  Our issue at hand:

0. this is our 1st javascript project (any after 1999) and with esri api too - till now we had been developing with SL 5.x and ESRI SL 3.x.

1. we have DEMs from different sources housed on our servers for internal consumptions: of varying resolutions (30, 10, 5, 3, and 1 meter) resolutions and lidar data that has helped in creating finer resolutions.

2. we have housed it on Image server (version 10.11), and we have created image services on image server for DEM and their derivatives such as hillshade, aspect, slope in units and percentage for internal users.


QUESTIONS:
Is there sample code for us to extract raster data from image server by providing an area of interest using Javascript API?

Do we need to have house raster data in a different format to efficiently extract it using JS API?

regards
Ravi.
0 Kudos
1 Reply
JohnGravois
Frequent Contributor
we don't have a sample published which demonstrates how to do exactly what you're asking, but ArcGISImageServerLayer has a method exportMapImage() which allows you to make a request to download content from the service.

This method returns a reference to a MapImage, whose href property can be used to retrieve the content.
0 Kudos