# The annotated map file (sort of)# Created by Pericles S. Nacionales for the MapServer tutorial# 2005-04-08# Maintained & enhanced since by Jeff McKenna, GatewayGeo# 2023-04-19 last updated## MapServer map file uses the pound sign (#) to denote the start of a line# comment--each line that needs to be commented has to be prepended with a "#".## Map files begin with MAP keyword to signify the start of the map object.# Well, the entire map file is THE map object. Enclosed between MAP and END# at the very bottom of this map file, are keyword/value pairs and other# objects.MAPIMAGETYPEPNGEXTENT-97.23897641.619778-82.12290249.385620SIZE400300SHAPEPATH"../data"IMAGECOLOR255255255FONTSET"../fonts/fonts.txt"# Layer objects are defined beneath the map object. You need at least one# layer defined in your map file before you can display a map... You can# define as many layers as you'd like.# Start of LAYER DEFINITIONS ---------------------------------------------LAYER# States polygon layer begins hereNAME"states_poly"DATA"states_ugl.shp"STATUSOFFTYPEPOLYGON# CLASSITEM defines the non-spatial attribute that you will be using to# separate a layer into classes. This attribute will be in the DBF file# of your shapefile (it will be different for each data format). In this# example the shapefile states_ugl has an associated database# (states_ugl.dbf) that contains an attribute called "CLASS". You will be# using two values in the CLASS attribute to separate the classes (also# called themes) used in this layer--land and water. CLASSITEM is used in# association with the EXPRESSION parameter in the CLASS object. See below.CLASSITEM"CLASS"# Just like CLASSITEM, LABELITEM defines the database attribute that you# will be using to draw labels. In this case, the values of the attribute# "STATE" will be used to label the states polygons.LABELITEM"STATE"# The class object is defined within the layer object. You can define as# many classes as you need.CLASSNAME'States'EXPRESSION'land'# There are styles in a class, just like there are classes in a layer,# just like there are layers in a map. You can define multiple styles in# a class just as you can define multiple classes in a layer and multiple# layers in a map.STYLECOLOR232232232END# There can be labels in a class, just like there are classes in a layer,# just like there are layers in a map. You can define multiple labels in# a class just as you can define multiple classes in a layer and multiple# layers in a map.# MapServer has a very flexible labeling system. With that flexibility# comes complexity, specially when using truetype fonts. Please read# through the LABEL section of the MapServer map file documentation at# https://mapserver.org/mapfile for more information.LABELCOLOR1323131SHADOWCOLOR218218218SHADOWSIZE22TYPETRUETYPEFONTarial-boldSIZE12ANTIALIASTRUEPOSITIONCLPARTIALSFALSEMINDISTANCE300BUFFER4END# end of labelENDCLASSNAME'Water'EXPRESSION'water'STYLECOLOR198198255ENDENDEND# States polygon layer ends hereLAYER# States line layer begins hereNAME"states_line"DATA"states_ugl.shp"STATUSOFFTYPELINECLASSITEM"CLASS"CLASSNAME'State Boundary'EXPRESSION'land'STYLECOLOR646464ENDENDEND# States line layer ends here# End of LAYER DEFINITIONS -------------------------------END# All map files must come to an end just as all other things must come to...