laptop and a wrench

Bogue

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.

Dernière publication: August 25, 2014 ArcGIS Server (.NET)
Numéro d’ID de bogue NIM070257
EnvoiJuly 6, 2011
Dernière modificationApril 2, 2025
S’applique àArcGIS Server (.NET)
Version trouvée10.0
Système d’exploitationWindows OS
Version du système d’exploitation2003
Version de correction10.1
StatutFixed

Solution de contournement

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

Étapes pour reproduire

ID de bogue: NIM070257

Logiciel:

  • ArcGIS Server (.NET)

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement