Skip to content

Commit 3c5885e

Browse files
committed
Update readme.
1 parent ba3ea4f commit 3c5885e

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

Shared/Samples/Apply raster rendering rule/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,24 @@
22

33
Display a raster on a map and apply different rendering rules to that raster.
44

5-
![Image of apply raster rendering rule](ApplyRasterRenderingRule.png)
5+
![Image of Apply raster rendering rule sample](apply-raster-rendering-rule.png)
66

77
## Use case
88

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

1111
## How to use the sample
1212

13-
Run the sample and use the drop-down menu at the top to select a rendering rule.
13+
Open the sample and use the picker to select a rendering rule.
1414

1515
## How it works
1616

17-
1. Create an `ImageServiceRaster` using a URL to an online image service.
18-
2. After loading the raster, use `imageServiceRaster.getServiceInfo().getRenderingRuleInfos()` to get a list of `RenderingRuleInfo` supported by the service.
19-
3. Choose a rendering rule info to apply and use it to create a `RenderingRule`.
20-
4. Create a new `ImageServiceRaster` using the same URL.
21-
5. Apply the rendering rule to the new raster using `imageServiceRaster.setRenderingRule(renderingRuleInfo)`.
22-
6. Create a `RasterLayer` from the raster for display.
17+
1. Create an `ImageServiceRaster` using a URL to an online image service.
18+
2. After loading the raster, get its `serviceInfo` to get a list of `RenderingRuleInfo` supported by the service.
19+
3. Choose a rendering rule info to apply and use it to create a `RenderingRule`.
20+
4. Create a new `ImageServiceRaster` using the same image service URL.
21+
5. Apply the rendering rule to the new raster.
22+
6. Create a `RasterLayer` from the raster for display.
2323

2424
## Relevant API
2525

@@ -29,7 +29,7 @@ Run the sample and use the drop-down menu at the top to select a rendering rule.
2929

3030
## About the data
3131

32-
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.
32+
The [CharlotteLAS image service](https://sampleserver6.arcgisonline.com/arcgis/rest/services/CharlotteLAS/ImageServer) 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.
3333

3434
## Additional information
3535

Shared/Samples/Apply raster rendering rule/README.metadata.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"category": "Visualization",
33
"description": "Display a raster on a map and apply different rendering rules to that raster.",
44
"ignore": false,
5-
"images": [],
5+
"images": [
6+
"apply-raster-rendering-rule.png"
7+
],
68
"keywords": [
79
"raster",
810
"rendering rules",
367 KB
Loading

0 commit comments

Comments
 (0)