PROBLEM

Publishing a raster as an ArcGIS Server map service from ArcMap does not retain the color edits

Last Published: April 25, 2020

Description

When publishing a raster as an ArcGIS Server map service, the published map service does not retain the color edits. This occurs when the raster is edited using the Image Analysis window in ArcMap.

Cause

Editing raster properties in the Image Analysis window does not change the original raster layer properties. The tool only applies the edits on the fly and the original raster remains unaltered. Hence, publishing the raster to ArcGIS Server as a map service does not retain the color edits on the raster.

Note:
Edited raster properties can be verified before publishing. From the Image Analysis window, click Display > Interactive Stretch, and adjust the values of the red, green, and blue bands of the raster layer. The edits are visible on the raster layer. Observe the layer properties of the same raster layer in the Layer Properties dialog box, click Symbology > Stretch > Statistics. Notice the values of the red, green, and blue bands in the Layer Properties dialog box are not similar to the values set in Interactive Stretch. 
Edited image using Image Analysis

Solution or Workaround

As a workaround, edit the raster color in the Layer Properties dialog box before publishing it as a map service.

  1. In ArcMap, edit the raster layer in the Layer Properties dialog box. Adjust the histogram values as required.
  2. Publish the raster layer as a map service to ArcGIS Server.
  3. Log in to Portal for ArcGIS and click Content. Navigate to the published map service. The published map service retains the edits made in ArcMap.

The images below show the rasters edited in ArcMap and the published map service. Both rasters display the same color.

Image of edits in ArcMap retained in Portal for ArcGIS

Article ID:000022545

Software:
  • ArcMap
  • Portal for ArcGIS
  • ArcGIS Server

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options