- Support Home >
- Knowledge Base >
- Technical Articles >
- Article Detail
HowTo: Add an ARC/INFO Grid to a map configuration file
| Article ID: | 25073 |
|---|---|
| Software: | ArcIMS 3.1, 4.0, 4.0.1, 9.0, 9.1, 9.2, 9.3 |
| Platforms: | Windows 98, NT 4.0, 2000, XP |
Summary
Procedure
- Create a folder at the C:\ root level called ims_grid.
- Download the sample data. Extract the contents of the WinZip file to C:\ims_grid.
This example will not work if the example data are not located in C:\ims_grid.
- Open a text editor such as WordPad or Notepad and open grid.axl from C:\ims_grid.
It may be necessary to change 'Files of Type' to 'All Files' in order to see grid.axl.
- Add a new IMAGEWORKSPACE element to the map file making sure to include the following required attributes: directory and name. For example:
<WORKSPACES>
<SHAPEWORKSPACE name="shp_ws-0" directory="C:\ims_grid" />
<IMAGEWORKSPACE name="img_ws-0" directory="C:\ims_grid" />
</WORKSPACES>
- Add a new LAYER element to the map file making sure to include the following required attributes: name, type, visible and id. For example:
<IMAGEWORKSPACE name="img_ws-0" directory="C:\ims_grid" />
</WORKSPACES>
<LAYER type="image" name="Land Use" visible="true" id="landuse" >
Refer to the ArcIMS ArcXML Programmer's reference for optional LAYER attributes.
- Add a new DATASET element to the map file making sure to include the following required attributes: name, type and workspace. For example:
<IMAGEWORKSPACE name="img_ws-0" directory="C:\ims_grid" />
</WORKSPACES>
<LAYER type="image" name="Land Use" visible="true" id="landuse" >
<DATASET name="landuse" type="image" workspace="img_ws-0" />
- Add the closing LAYER element to the map configuration file. For example:
<IMAGEWORKSPACE name="img_ws-0" directory="C:\ims_grid" />
</WORKSPACES>
<LAYER type="image" name="Land Use" visible="true" id="landuse" >
<DATASET name="landuse" type="image" workspace="img_ws-0" />
</LAYER>
- Save grid.axl and close the text editor.
Click yes if the prompt appears with the following message: 'You are about to save the document in a Text-Only format, which will remove all formatting. Are you sure you want to do this?'
- Using ArcIMS Administrator, create a new map service called grid. For Map File, browse to C:\ims_grid and choose grid.axl. For Virtual Server, choose ImageServer1 and click OK.
If the service fails to add, recheck the previous steps.
Created: 6/12/2003
Last Modified: 9/2/2008