C.2 Creating mapfiles
Having installed the MXD2WMS tool, create or open an ArcMap file containing your symbolized data.

Click on the MXD2WMS tool icon
and then close the pop-up window.

Closing the pop-up window opens a save as dialogue window. The default data type to export to from this tool is AXL, so you will need select MapServer files (*.map) type from the drop down menu.

Please note, that though there are a number of tabbed options in the pop-up, they may not actually change the resultant mapfile. For example the tool will create a mapfile (and classify) any layer file or shape file in the ArcMap layer irrespectively of whether it is selected in the options dialogue, or whether it is selected in the mapfile.
This will create a complete mapfile. However, you should simply copy the CLASS definitions from this mapfile to the appropriate LAYER section of the mapfile you have been creating according to the instructions in the body of this cookbook.
If your symbolization in ArcMap had polygon boundaries you will need to remove these from the MapServer symbolization. This may be easier to do by deleting all the 'OUTLINECOLOR' lines from the generated mapfile than by altering your ArcMap symbolization.
Section last modified : 19 January 2010.

