Skip to content

Interface: SingleBandRenderOptions

单波段渲染选项

Table of contents

Properties

Properties

band

Optional band: number

band 索引从 1 开始,默认为 1

Defined in

src/layers/TIFFImageryProvider/index.ts:39


colorScaleImage

Optional colorScaleImage: HTMLCanvasElement | HTMLImageElement

要使用的色标图像.

Defined in

src/layers/TIFFImageryProvider/index.ts:44


colorScale

Optional colorScale: "rainbow" | "jet" | "hsv" | "hot" | "cool" | "spring" | "summer" | "autumn" | "winter" | "bone" | "copper" | "greys" | "ylgnbu" | "greens" | "ylorrd" | "bluered" | "rdbu" | "picnic" | "portland" | "blackbody" | "earth" | "electric" | "redblue" | "coolwarm" | "diverging_1" | "diverging_2" | "blackwhite" | "twilight" | "twilight_shifted"

要使用的命名色标的名称.

Defined in

src/layers/TIFFImageryProvider/index.ts:49


colors

Optional colors: string[] | [number, string][]

自定义插值颜色,[stopValue(0 -1), color] 或 [color],如果是后者,则表示均匀分布

Example

ts
[
  [0, "red"],
  [0.6, "green"],
  [1, "blue"]
];

Defined in

src/layers/TIFFImageryProvider/index.ts:55


type

Optional type: "discrete" | "continuous"

自定义差值类型,默认为 continuous

Defined in

src/layers/TIFFImageryProvider/index.ts:58


domain

Optional domain: [number, number]

用于缩放颜色的值域

Defined in

src/layers/TIFFImageryProvider/index.ts:63


displayRange

Optional displayRange: [number, number]

将渲染的值的范围,该范围之外的值将是透明的。

Defined in

src/layers/TIFFImageryProvider/index.ts:68


applyDisplayRange

Optional applyDisplayRange: boolean

设置是否应使用 displayRange。

Defined in

src/layers/TIFFImageryProvider/index.ts:73


clampLow

Optional clampLow: boolean

域以下的值是否应被限制。

Defined in

src/layers/TIFFImageryProvider/index.ts:78


clampHigh

Optional clampHigh: boolean

是否应限制域以上的值(如果未定义,则默认为 clampLow 值)。

Defined in

src/layers/TIFFImageryProvider/index.ts:83


expression

Optional expression: string

设置要在绘图上计算的数学表达式。表达式可以包含具有整数/浮点值、带标识符或具有单个参数的 GLSL 支持函数的数学运算。 支持的 GLSL 函数例如:弧度、度数、sin、asin、cos、acos、tan、atan、log2、log、sqrt、exp2、exp、abs、sign、floor、ceil、fract。 支持的数学运算有:加“+”、减“-”、乘“*”、除“/”、幂“**”、一元加“+a”、一元减“-a”。 ** 别忘了设置域参数!**

Example

js
"-2 * sin(3.1415 - b1) ** 2";
"(b1 - b2) / (b1 + b2)";

Defined in

src/layers/TIFFImageryProvider/index.ts:97