laptop and a wrench

Error

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.

Última publicación: August 25, 2014 ArcGIS Server (.NET)
Número de ID del error NIM070257
EnviadoJuly 6, 2011
Última modificaciónApril 2, 2025
Relacionado conArcGIS Server (.NET)
Versión encontrada10.0
Sistema operativoWindows OS
Versión de sistema operativo2003
Versión corregida10.1
EstadoFixed

Solución alternativa

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

Pasos para reproducir

ID del error: NIM070257

Software:

  • ArcGIS Server (.NET)

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga