Class: ImageCollectionService

ol.supermap.ImageCollectionService

影像集合服务类

new ol.supermap.ImageCollectionService(url, options)

openlayers/services/ImageCollectionService.js, line 7
Name Type Description
url string

服务地址。例如: http://{ip}:{port}/iserver/{imageservice-imageserviceName}/restjsr/

options Object

参数。

Name Type Default Description
collectionId string

影像集合(Collection)的ID,在一个影像服务中唯一标识影像集合。

proxy string 可选

服务代理地址。

withCredentials boolean false 可选

请求是否携带 cookie。

crossOrigin boolean 可选

是否允许跨域请求。

headers Object 可选

请求头。

Version:
  • 10.2.0
Example
new ol.supermap.ImageCollectionService(url,options)
     .getLegend(queryParams,function(result){
         //doSomething
     })

Extends

Methods

deleteItemByID(featureId, callback)

openlayers/services/ImageCollectionService.js, line 99

删除影像集合中的指定ID(featureId)的Item对象,即从影像集合中删除指定的影像。

Name Type Description
featureId string

Feature 的本地标识符。

callback RequestCallback

请求结果的回调函数。

getItemByID(featureId, callback)

openlayers/services/ImageCollectionService.js, line 122

返回影像集合中的指定ID(featureId)的Item对象,即返回影像集合中指定的影像。

Name Type Description
featureId string

Feature 的本地标识符。

callback RequestCallback

请求结果的回调函数。

getLegend(queryParams, callback)

openlayers/services/ImageCollectionService.js, line 32
Name Type Description
queryParams Object

query参数

Name Type Description
renderingRule SuperMap.ImageRenderingRule 可选

指定影像显示的风格,包含拉伸显示方式、颜色表、波段组合以及应用栅格函数进行快速处理等。不指定时,使用发布服务时所配置的风格。

callback RequestCallback

请求结果的回调函数。

getStatistics(callback)

openlayers/services/ImageCollectionService.js, line 55

返回当前影像集合的统计信息。包括文件数量,文件大小等信息。

Name Type Description
callback RequestCallback

请求结果的回调函数。

getTileInfo(callback)

openlayers/services/ImageCollectionService.js, line 77

返回影像集合所提供的服务瓦片的信息,包括:每层瓦片的分辨率,比例尺等信息,方便前端进行图层叠加。

Name Type Description
callback RequestCallback

请求结果的回调函数。