类名 MapGISImageServerImageryProvider

# new MapGISImageServerImageryProvider(options)

IGS影像服务接入类

参数:

名称 类型 默认值 描述
options Object
url Cesium.Resource | String null

服务的基地址,支持url字符串和Cesium.Resource两种类型,当类型为Cesium.Resource时,支持传入额外请求参数、请求头参数等,具体请参考Cesium.Resource
格式如下:
http://{ip}:{port}/igs/rest/services/{文件夹名(可选)}/{serviceName}/ImageServer

renderMode String 'image'

影像的出图模式。可选'tile' 、 'image'。默认为'image'。 当选项为'image'时,加载影像以动态出图的方式出图,当选项为'tile'时,加载影像时以瓦片的方式平铺。

bandIds Array.<number>

波段id列表,例如[2,0,1]

interpolation String

重采样方式,支持NearestNeighbor/BilinearInterpolation,默认数据本身的重采样方式

renderingRule RasterFunction

渲染规则,NDVI应用于多光谱影像数据,HILLSHADE应用于DEM高程数据。例如renderingRule={type:HILLSHADE,altitude:75,azimuth:120,zFactor:1.0}或renderingRule={type:NDVI,redIndex:0,nirIndex:2}

tilingScheme Cesium.TilingScheme | CustomTilingScheme Cesium.GeographicTilingScheme

瓦片的平铺方案,详见Cesium.TilingScheme

rectangle Cesium.Rectangle Cesium.Rectangle.MAX_VALUE

图层显示范围,超出范围不会额外请求瓦片,详见Cesium.Rectangle

httpMethod String 'GET'

HTTP请求方式,"GET"、"POST",默认为GET请求

headers Object null

HTTP请求头,传入方式见下方示例,请严格按照HTTP请求头属性填写,可传入请求方式为POST时的编码方式,默认方式为"text/plain",请注意IGS.NET版本服务目前只支持"text/plain"的编码方式

imageFormat String 'PNG'

图像格式

tileWidth number 256

请求图像宽度

tileHeight number 256

请求图像高度

minimumLevel number 0

图层最小请求瓦片级别,小于该级别不再请求瓦片

maximumLevel number

图层最大请求瓦片级别,大于该级别不再请求瓦片

extensions Array []

自定义扩展参数,将参数里面的对象解析出来拼装在出图地址后面

proxy String null

转发代理

build2DImageResource function null

重载build2DImageResource方法,来重载瓦片的请求逻辑

成员变量

Array

# bandIds

gdbps地址数组

String

# interpolation

重采样方式,支持NearestNeighbor/BilinearInterpolation,默认数据本身的重采样方式

Boolean

# readonly ready

获取当前图层是否创建完成

Object

# renderingRule

渲染规则,NDVI应用于多光谱影像数据,HILLSHADE应用于DEM高程数据

Number

# readonly tileHeight

瓦片高度

Number

# readonly tileWidth

瓦片宽度

构造函数
成员变量
方法
事件