Customer Service | Training | Contact Us
Welcome!
Login
Search Options   products areas display

Which products should be considered?

All Products

ArcCAD
ArcEditor
ArcExplorer
ArcGIS Engine
ArcGIS Explorer
ArcGIS Image Server
ArcGIS Mobile
ArcGIS Server
ArcIMS
ArcInfo Desktop
ArcInfo Workstation
ArcLogistics Route
ArcPad
ArcPad Application Builder
ArcReader
ArcSDE
ArcView
ArcView 3.x
ArcWeb Services APIs
ArcWeb Toolbar for ArcGIS
Atlas GIS
BusinessMap
BusinessMap Pro
GIS Portal Toolkit
Job Tracking for ArcGIS
MapIt
Maplex
MapObjects -- Java
MapObjects -- Windows
MapObjects IMS
MapObjects LT
MapStudio
Military Overlay Editor
NetEngine
PC ARC/INFO & DAK
PLTS
RouteMap
RouteMap IMS
SDE
Tracking Server

    Remember these settings for each visit More info
You are here:
Browse Path: ArcIMS > Data > Images / Raster

Technical Article   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

Instructions provided demonstrates how to add an ArcInfo Grid to a map confiugartion file. ArcInfo Grids must be added to map configuration files manually, using a text editor.

Procedure

  1. Create a folder at the C:\ root level called ims_grid.
  2. 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.

  3. 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.

  4. 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>

  5. 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.

  6. 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" />



  7. 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>


  8. 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?'

  9. 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

This website's graphical display is now viewable only with W3C standards-compliant browsers, but the content is accessible to all browsers and Internet devices. View our supported browser matrix for more information on our website display.