Combining a hillshaded DEM with a topo map
There are often cases where you want to merge two image services together, such as merging a hillshaded DEM with scanned topographic maps or with satellite or aerial imagery. In this case, the hillshaded DEM helps you visualize topography on a scanned map or any 2D image.
In this workflow, you will be combining a three-band color image service (Topo Map) with a one-band grayscale image service (Hillshaded DEM) to create a third image service (Hillshaded Topo Map).
One benefit of keeping these two input image service definitions separate is that the data for each can be updated independently.
-
Create the following two image service definitions.
-
A three-band color image service definition using topographic maps
You could use any dataset, such as satellite or aerial imagery, as long as its output is a three-band color image service definition.
- A hillshaded elevation image service definition
-
A three-band color image service definition using topographic maps
- Publish both image service definitions, either using the ArcGIS Server Manager or the Image Server Manager.
- Connect to each published image service by adding each image service into ArcMap.
-
Save each image service layer as an image service reference layer (*.ISRef).
You will have two image service reference files, for example, Topo_Map.ISRef and Hillshade.ISRef.
-
Create a new three-band color image service using the Advanced methods.
- Click the Image Service drop-down menu on the Image Service Definition Editor toolbar, point to Advanced, then click New Service Definition.
- Type a service definition name.
- Select the spatial reference.
- The Service type will be Color.
-
Add the .ISRefs (created earlier) to this new image service definition.
- On the Image Service Definition Editor toolbar, click the Image Service drop-down menu, point to Advanced, then click Add Raster Dataset to open the Select Raster Type dialog box.
- Double-click the Georeferenced Imagery folder and select the Image Service raster type.
- Browse to the folder containing the .ISRefs or select each and add it to the image service definition.
- Open the attribute table of the image service definition by clicking the Service Table button on the Image Service Definition Editor toolbar.
-
Select the row in the table representing the three-band color image (e.g., Topo_Map.ISRef).
- Click the Raster Properties button on the Image Service Definition Editor toolbar.
-
Disable the raster.
- Click the Rasters node in the Raster Properties dialog box.
- On the General tab, uncheck the Enabled check box.
- Click OK to close the dialog box.
- Open the attribute table.
-
Copy the contents under the RasterID column for the Topo_Map record.
You may want to paste this number into Notepad.
- Select the row in the table representing the hillshaded DEM image (e.g., Hillshade.ISRef).
- Click the Raster Properties button on the Image Service Definition Editor toolbar.
- Click the Processes node and uncheck the Validator - Extract bands process.
- Click the Rasters node.
- Click the Processes tab.
- Add the Extract Bands process and open it to edit the parameters.
- Click the Output Number of Bands drop-down arrow and click 3.
- Click the Band Source tab.
- Type "1" for Band Source-1, Band Source-2, and Band Source-3.
- Click OK to close the Extract Bands Process Definition dialog box.
- Add the Image Algebra process and open it to edit the parameters.
- On the Primary tab, click the Method drop-down arrow and click Add.
-
Type "0.5" for Band 1 scale, Band 2 scale, and Band 3 scale.
- Click the Auxiliary tab.
- Paste the RasterID number you copied earlier into the Auxiliary raster ID text box and add a ".1" to the value.
- Check the Resample check box.
-
Type "0.5" for Band 1 scale, Band 2 scale, and Band 3 scale.
- Click OK to close the Image Algebra Process Definition dialog box.
- Click OK to close the Raster Properties dialog box.
- Click the Image Service drop-down menu on the Image Service Definition Editor toolbar, point to Advanced, then click Build.
- Click OK to build the image service.
- Check the Preview layer in the table of contents to view the hillshaded topo map.
- Publish the image service definition.