laptop and a wrench

漏洞

The Export Image functionality using Rendering Rule Colormap through the REST Services Directory does not display the expected result when all pixel values are not specified.

上次发布: August 25, 2014 ArcGIS Server (.NET)
漏洞 ID 编号 NIM070257
已提交July 6, 2011
上次修改时间April 2, 2025
适用范围ArcGIS Server (.NET)
找到的版本10.0
操作系统Windows OS
操作系统版本2003
修正版本10.1
状态Fixed

解决办法

Include all pixels values 0 - N in the color map.If only one pixel needs to be rendered, you can set a single color to rest of the pixel values and set that color to be a transparrent color, by setting the color value as value for "nodata" parameter in the request. (note: You need 10.0 SP2 to assign a RGB color to nodata){ "rasterFunction" : "Colormap", "rasterFunctionArguments" : { "Colormap" : [ [0, 0, 0, 0], [1, 0, 255, 0], [2, 0, 0, 0], [3, 0, 0, 0], [4, 0, 0, 0], [5, 0, 0, 0], [6, 0, 255, 200], [7, 0, 0, 0] ] }, "variableName" : "Raster"}sample request where all pixels with color: 0,0,0 are rendered transparent. the pixel with value 6 is rendered green.NIM070254/ImageServer/exportImage?bbox=471090.082572495%2C208342.353396819%2C494665.082572495%2C231342.353396819&bboxSR=&size=&imageSR=&time=&format=jpgpng&pixelType=U8&noData=0%2C0%2C0&interpolation=RSP_NearestNeighbor&compressionQuality=&bandIds=&mosaicRule=&renderingRule={%0D%0A++"rasterFunction"+%3A+"Colormap"%2C%0D%0A++"rasterFunctionArguments"+%3A+{%0D%0A++++"Colormap"+%3A+%5B%0D%0A++++%5B0%2C+0%2C+0%2C+0%5D%2C%0D%0A++++%5B1%2C+0%2C+255%2C+0%5D%2C%0D%0A++++%5B2%2C+0%2C+0%2C+0%5D%2C+%0D%0A++++%5B3%2C+0%2C+0%2C+0%5D%2C%0D%0A++++%5B4%2C+0%2C+0%2C+0%5D%2C%0D%0A++++%5B5%2C+0%2C+0%2C+0%5D%2C%0D%0A++++%5B6%2C+0%2C+255%2C+200%5D%2C%0D%0A++++%5B7%2C+0%2C+0%2C+0%5D%0D%0A++++%5D%0D%0A++}%2C%0D%0A++"variableName"+%3A+"Raster"%0D%0A}%0D%0A&f=html

重现步骤

漏洞 ID: NIM070257

软件:

  • ArcGIS Server (.NET)

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

下载 Esri 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项