new RasterFunction(options)
document/layer/support/RasterFunction.js, line 3
栅格数据处理渲染规则,支持ndvi、hillshade,NDVI应用于多光谱影像数据,HILLSHADE应用于DEM高程数据。
| Name | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
构造参数
|
Members
-
functionArgumentsObject
-
栅格函数的参数。结构取决于指定的函数。
-
functionNameString
-
影像服务的栅格函数名称。目前仅支持"ENVI"和“HILLSHADE”两种模式。
-
outputPixelTypeString
-
输出图像的像素类型
-
rasterFunctionDefinitionObject null
-
栅格函数的定义
-
variableNameString
-
栅格函数的变量名。
Methods
-
RasterFunction.fromJSON(json){RasterFunction}
document/layer/support/RasterFunction.js, line 49 -
通过json构造RasterFunction对象
Name Type Description jsonObject json对象
Returns:
Type Description RasterFunction RasterFunction实例 -
clone(){RasterFunction}
document/layer/support/RasterFunction.js, line 90 -
克隆RasterFunction对象
Returns:
Type Description RasterFunction 克隆后的RasterFunction实例 -
toJSON(){Object}
document/layer/support/RasterFunction.js, line 58 -
导出json对象
Returns:
Type Description Object json对象