laptop and a wrench

漏洞

The queryElevation() method does not return expected results when working with the ArcGIS API for JavaScript elevation sample.

上次发布: December 14, 2018 ArcGIS API for JavaScript
漏洞 ID 编号 BUG-000118524
已提交December 3, 2018
上次修改时间June 5, 2024
适用范围ArcGIS API for JavaScript
找到的版本4.9
操作系统Windows OS
操作系统版本N/A
状态Will Not Be Addressed

附加信息

ground.queryElevation() returns results calculated based on the highest resolution and ground.createSampler() creates an elevation sampler based on the terrain resolution currently loaded in the view. The reason why the 2 values in your app are different is because they use these 2 different resolutions of the terrain to calculate the z value. If you want to control the resolution then use these methods on the elevation layer and pass in the demResolution that you want it to be calculated for (if you don't know a value, for highest precision results just use "finest-contiguous"). In your example I am changing the resolution for the queryElevation to be more coarse and then I get the same result: https://jsfiddle.net/cu8k5q02/1/ See demResolution option here: http://localhost/arcgis-js-sdk-4/build-artifacts/latest/api-reference/esri-layers-ElevationLayer.html#queryElevation and here: http://localhost/arcgis-js-sdk-4/build-artifacts/latest/api-reference/esri-layers-ElevationLayer.html#createElevationSampler Feel free to reach back for more questions.

重现步骤

漏洞 ID: BUG-000118524

软件:

  • ArcGIS API for JavaScript

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项