Wms setup
From DreamsteepWiki
WMS METADATA IN MAPFILE
From mapserver docs
At the MAP level:
* Map NAME
* Map PROJECTION
* Map Metadata (in the WEB Object):
o wms_title
o wms_onlineresource
o wms_srs (unless PROJECTION object is defined using “init=epsg:...”)
And for each LAYER:
* Layer NAME
* Layer PROJECTION
* Layer METADATA
o wms_title
o wms_srs (optional since the layers inherit the map’s SRS value)
* Layer STATUS
o Layers set to STATUS DEFAULT will always be sent to the client.
o Layers set to STATUS ON or STATUS OFF can be requested by the client.
* Layer TEMPLATE (required for GetFeatureInfo requests)
* Layer DUMP TRUE (only required for GetFeatureInfo GML requests)
Example file
# http://127.0.0.1/cgi-bin/mapserv.exe?map=/ms4w/apps/metro_apps/htdocs/JCTaxPoly.map&layer=taxlots&mode=map
MAP
NAME 'TAXLOT'
IMAGETYPE PNG24
TRANSPARENT ON
EXTENT 1303000 11204000 1350000 11250000
SIZE 1000 800
IMAGECOLOR 255 255 255 #background color
LEGEND
STATUS EMBED
POSITION LR
TRANSPARENT FALSE
END
UNITS Feet
SHAPEPATH "../data/JCShps"
WEB
IMAGEPATH '/ms4w/tmp/ms_tmp/'
IMAGEURL '/ms_tmp/'
LEGENDFORMAT text/html
METADATA
"wms_title" "taxlots"
"wms_onlineresource" "http://127.0.0.1/cgi-bin/mapserv.exe?map=/ms4w/apps/metro_apps/htdocs/JCTaxPoly.map"
#"wms_feature_info_mime_type" "text/html"
"wms_srs" "EPSG:26915"
END #end metadata
END #end web
PROJECTION
"init=epsg:26915"
END #end projection
LAYER # Taxlots polygon layer begins here
NAME "taxlots"
METADATA
"wms_title" "taxlotstit"
"wms_srs" "EPSG:26915"
END
DATA 'taxlot_polygons.shp'
STATUS OFF
TYPE POLYGON
STATUS DEFAULT
DUMP TRUE
LABELITEM "ACCOUNTNO"
#TEMPLATE /opt/fgs/apps/cress/htdocs/JCTaxLot_Identify.html
PROJECTION
"init=epsg:26915"
END #end projection
CLASSITEM "Checked"
CLASS
NAME "verified taxlots"
EXPRESSION "v"
STYLE
COLOR 110 255 125 #color of verified taxlots
OUTLINECOLOR 0 15 27
OPACITY 50
END
END
CLASS
NAME "unverified taxlots"
EXPRESSION (('[Checked]' = 'n') or ('[Checked]' = 'u'))
STYLE
COLOR 200 255 175 #color of unverified taxlots
OUTLINECOLOR 0 15 27
OPACITY 50
END
END
END
END

