简体   繁体   English

从 RasterLayer arcgis js 获取数据(值)

[英]Get data(values) from RasterLayer arcgis js

I have mapserver which contains tif files (raster layer).This files contains temperature data.我有包含 tif 文件(栅格层)的地图服务器。此文件包含温度数据。 I want to know how to get data from this raster layer.我想知道如何从这个栅格层获取数据。 I look a lot of arcgis js api samples,but none of them show how to read data from raster layer.我看了很多 arcgis js api 示例,但没有一个显示如何从栅格层读取数据。

ArcGIS JS API support WCS (Web Coverage Service), OGC standard, which is supported by every map server including MapServer. ArcGIS JS API 支持 WCS(Web Coverage Service),OGC 标准,包括 MapServer 在内的每个 map 服务器都支持该标准。

In that way, you will use a WCSLayer , wich has several properties and methods to handle information of bands an pixels.这样,您将使用WCSLayer ,它有几个属性和方法来处理带区和像素的信息。

ArcGIS JS API - WCSLayer ArcGIS JS API - WCSLayer

MapServer - WCS地图服务器 - WCS

      import * as identify from "@arcgis/core/rest/identify";
      .
      .
      .
        return identify
            .identify(url, params)
            .then(function (response) {
                var results = response.results;
               
                results.map((result, index) => {
...
}

This was solution for me这对我来说是解决方案

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM