Skip to content

Commit b856bd1

Browse files
authored
RasterRenderingRule: Readme Update (#349)
1 parent 494462c commit b856bd1

File tree

1 file changed

+13
-9
lines changed
  • src/main/java/com/esri/samples/raster/raster_rendering_rule

1 file changed

+13
-9
lines changed
Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
<h1>Raster Rendering Rule</h1>
1+
<h1>Raster rendering rule</h1>
22

33
<p>Display a raster on a map and apply different rendering rules to that raster.</p>
44

55
<p><img src="RasterRenderingRule.png"/></p>
66

7-
<h2>Use case</h1>
7+
<h2>Use case</h2>
88

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>
1010

1111
<h2>How to use the sample</h2>
1212

@@ -15,12 +15,12 @@
1515
<h2>How it works</h2>
1616

1717
<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>
2424
</ol>
2525

2626
<h2>Relevant API</h2>
@@ -35,6 +35,10 @@
3535

3636
<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>
3737

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+
3842
<h2>Tags</h2>
3943

4044
<p>raster, rendering rules, visualization</p>

0 commit comments

Comments
 (0)