PROBLEM
A GRID won't display as an Image Service.
GRIDS have two directories: one for the GRID data and one for the INFO directory. The references to these directories in the service's map configuration file must point to the correct locations.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<ARCXML version="1.1">
<CONFIG>
<MAP>
<PROPERTIES>
<ENVELOPE minx="-2006008" miny="-1240677" maxx="-1993628" maxy="-1256187"
name="Initial_Extent" />
<MAPUNITS units="METERS" />
</PROPERTIES>
<WORKSPACES>
<IMAGEWORKSPACE directory="c:\directory_above_info" name="jai_ws-15" />
</WORKSPACES>
<LAYER type="image" name="grid_data_directory" visible="true" id="0">
<DATASET name="grid_data_directory" type="image" workspace="jai_ws-15" />
</LAYER>
</MAP>
</CONFIG>
</ARCXML>
Get help from ArcGIS experts
Download the Esri Support App