Class: GetGridCellInfosParameters

GetGridCellInfosParameters

数据服务栅格查询参数类。此类用于设置进行栅格查询的数据源、数据集和栅格所在的地理位置。

new GetGridCellInfosParameters(options)

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/openlayers/iclient-ol.js"></script>
<script>
  new ol.supermap.GetGridCellInfosParameters(options);
  
  // 弃用的写法
  new SuperMap.GetGridCellInfosParameters(options);

</script>

// ES6 Import
import { GetGridCellInfosParameters } from '@supermapgis/iclient-ol';

new GetGridCellInfosParameters(options);

common/iServer/GetGridCellInfosParameters.js, line 6
Name Type Description
options Object

参数。

Name Type Description
datasetName string

数据集名称。

dataSourceName string

数据源名称。

X number

地理位置 X 轴。

Y number

地理位置 Y 轴。

bounds Array | Object

查询范围。单对象栅格查询、多对象栅格查询、单对象影像查询、多对象影像查询时有效。 单对象查询时,bounds为对象。多对象查询时,bounds为数组。

Members

boundsArray Object

要查询的地理范围。

Example
矩形范围范例:{
"leftBottom":{"x":112.351881,"y":34.663401},
"rightTop":{"x":113.361881,"y":35.673401}
}
多点范例多点范例:[
{"point":{"x": 112.361881,"y": 34.673401}},
{"point":{"x": 107.669629,"y": 32.888868}}
]

datasetNamestring

数据集名称。

dataSourceNamestring

数据源名称。

Xnumber

要查询的地理位置 X 坐标。

Ynumber

要查询的地理位置 Y 坐标。

Methods

destroy()

common/iServer/GetGridCellInfosParameters.js, line 68

释放资源,将引用的资源属性置空。