|
1 | | -<h1>Raster Rendering Rule</h1> |
| 1 | +<h1>Raster rendering rule</h1> |
2 | 2 |
|
3 | 3 | <p>Display a raster on a map and apply different rendering rules to that raster.</p> |
4 | 4 |
|
5 | 5 | <p><img src="RasterRenderingRule.png"/></p> |
6 | 6 |
|
7 | | -<h2>Use case</h1> |
| 7 | +<h2>Use case</h2> |
8 | 8 |
|
9 | | -<p>A single raster image can be rendered in a number of different ways, including representation of slope aspect, hillshade and shaded relief. Applying these different renderers to the same raster allows for a powerful visual analysis of the data. For example, a geologist could interrogate the raster image using all available renderers to map subtle geological features on a landscape not apparent in a regular aerial photograph.</p> |
| 9 | +<p>Raster images whose individual pixels represent elevation values can be rendered in a number of different ways, including representation of slope, aspect, hillshade, and shaded relief. Applying these different rendering rules to the same raster allows for a powerful visual analysis of the data. For example, a geologist could interrogate the raster image to map subtle geological features on a landscape, which may become apparent only through comparing the raster when rendered using several different rules.</p> |
10 | 10 |
|
11 | 11 | <h2>How to use the sample</h2> |
12 | 12 |
|
|
15 | 15 | <h2>How it works</h2> |
16 | 16 |
|
17 | 17 | <ol> |
18 | | - <li> Create an <code>ImageServiceRaster</code> using a URL to an online image service. </li> |
19 | | - <li> After loading the raster, use <code>imageServiceRaster.getServiceInfo().getRenderingRuleInfos()</code> to get a list of <code>RenderingRuleInfo</code> supported by the service. </li> |
20 | | - <li> Choose a rendering rule info to apply and use it to create a <code>RenderingRule</code>. </li> |
21 | | - <li> Create a new <code>ImageServiceRaster</code> using the same URL. </li> |
22 | | - <li> Apply the rendering rule to the new raster using <code>imageServiceRaster.setRenderingRule(renderingRuleInfo)</code>. </li> |
23 | | - <li> Create a <code>RasterLayer</code> from the raster for display. </li> |
| 18 | + <li>Create an <code>ImageServiceRaster</code> using a URL to an online image service.</li> |
| 19 | + <li>After loading the raster, use <code>imageServiceRaster.getServiceInfo().getRenderingRuleInfos()</code> to get a list of <code>RenderingRuleInfo</code> supported by the service.</li> |
| 20 | + <li>Choose a rendering rule info to apply and use it to create a <code>RenderingRule</code>.</li> |
| 21 | + <li>Create a new <code>ImageServiceRaster</code> using the same URL.</li> |
| 22 | + <li>Apply the rendering rule to the new raster using <code>imageServiceRaster.setRenderingRule(renderingRuleInfo)</code>.</li> |
| 23 | + <li>Create a <code>RasterLayer</code> from the raster for display.</li> |
24 | 24 | </ol> |
25 | 25 |
|
26 | 26 | <h2>Relevant API</h2> |
|
35 | 35 |
|
36 | 36 | <p>This raster image service contains 9 LAS files covering Charlotte, North Carolina's downtown area. The lidar data was collected in 2007. Four Raster Rules are available for selection: None, RFTAspectColor, RFTHillshade, and RFTShadedReliefElevationColorRamp.</p> |
37 | 37 |
|
| 38 | +<h2>Additional information</h2> |
| 39 | + |
| 40 | +<p>Image service rasters of any type can have rendering rules applied to them; they need not necessarily be elevation rasters. For a list of raster functions and the syntax for rendering rules, see the ArcGIS REST API documentation: https://developers.arcgis.com/documentation/common-data-types/raster-function-objects.htm.</p> |
| 41 | + |
38 | 42 | <h2>Tags</h2> |
39 | 43 |
|
40 | 44 | <p>raster, rendering rules, visualization</p> |
0 commit comments