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.

Zuletzt veröffentlicht: August 25, 2014 ArcGIS Server (.NET)
Bug-ID-Nummer NIM070254
EingereichtJuly 6, 2011
Zuletzt geändertApril 2, 2025
Gilt fürArcGIS Server (.NET)
Gefunden in Version10.0
BetriebssystemWindows OS
Betriebssystemversion2003
StatusDuplicate

Zusätzliche Informationen

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

Schritte zur Reproduzierung

Bug-ID: NIM070254

Software:

  • ArcGIS Server (.NET)

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln