new NDVIParameter(options)
Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/openlayers/iclient-ol.js"></script>
<script>
  new ol.supermap.NDVIParameter(options);
  
  // 弃用的写法
  new SuperMap.NDVIParameter(options);
</script>
// ES6 Import
import { NDVIParameter } from '@supermapgis/iclient-ol';
new NDVIParameter(options);
        
        
        
            common/iServer/NDVIParameter.js, line 8
        
        
    | Name | Type | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | 
            
            
            Object | 
                
                 参数。 
  | 
        
Extends
Members
- 
    
colorMapstring
 - 
    
    
颜色表。由栅格的中断值和颜色停止之间的映射组成的,如0.3->d9f0a3ff 指的是[0,0.3)显示d9f0a3ff。仅单波段数据时设定。
- Default Value: "0:ffffe5ff;0.1:f7fcb9ff;0.2:d9f0a3ff;0.3:addd8eff;0.4:78c679ff;0.5:41ab5dff;0.6:238443ff;0.7:006837ff;1:004529ff"
 
 
nirIndexnumber
近红外光谱波段索引。
- Default Value: 1
 
redIndexnumber
红光谱波段索引。
栅格分析方法。
Methods
- 
    
inherited destroy()
common/iServer/NDVIParameter.js, line 53 - 
    
    
释放资源,将资源的属性置空。
 - 
    
toJSON(){string}
common/iServer/NDVIParameter.js, line 63 - 
    
    
将 NDVIParameter 对象转化为 JSON 字符串。
Returns:
Type Description string 返回转换后的 JSON 字符串。