laptop and a wrench

Bug

Exporting an image using Rendering Rule Colormap, through the REST Services Directory, does not display the expected result when only one pixel value is specified.

Last Published: August 25, 2014 ArcGIS Server (.NET)
Bug ID Number NIM070254
SubmittedJuly 6, 2011
Last ModifiedApril 2, 2025
Applies toArcGIS Server (.NET)
Version found10.0
Operating SystemWindows OS
Operating System Version2003
StatusDuplicate

Additional Information

Duplicate of NIM070257

Workaround

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

Steps to Reproduce

Bug ID: NIM070254

Software:

  • ArcGIS Server (.NET)

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options