You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Shared/Samples/Apply raster rendering rule/README.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,24 +2,24 @@
2
2
3
3
Display a raster on a map and apply different rendering rules to that raster.
4
4
5
-

5
+

6
6
7
7
## Use case
8
8
9
9
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.
10
10
11
11
## How to use the sample
12
12
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.
14
14
15
15
## How it works
16
16
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.
23
23
24
24
## Relevant API
25
25
@@ -29,7 +29,7 @@ Run the sample and use the drop-down menu at the top to select a rendering rule.
29
29
30
30
## About the data
31
31
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.
0 commit comments