# # $Id: demo.map,v 1.4 2013-02-27 18:20:37 jmckenna Exp $ # # Start of map file # MAP # all temp files get prefixed with this string NAME ms-ogc-workshop # always returns a map STATUS ON # image format options OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" END # width / height of map image SIZE 500 300 # projection of the INTERFACE that this mapfile supports PROJECTION "init=epsg:4326" END # minx miny maxx maxy EXTENT -180 -90 180 90 # World # units of map/app UNITS DD # def pointers for symbols SYMBOLSET "../../etc/symbols/symbols.txt" FONTSET "../../etc/fonts/fonts.txt" # # Start of web interface definition # WEB TEMPLATE "../../templates/demo.html" HEADER "../../templates/query_header.html" FOOTER "../../templates/query_footer.html" # this is set in the form which initializes the page, but can be set here if you want INCLUDE "../../common/imagepath.inc" # this is set in the form which initializes the page, but can be set here if you want IMAGEURL "/ms_tmp/" END # # Start of reference map # REFERENCE # which image is the base image for refmaps # a area of interest box will be drawn on top of it IMAGE ../../graphics/refmap_world_4326.gif # extents of ref image (minx miny maxx maxy) EXTENT -180 -90 180 90 # width / height of image SIZE 150 75 # always generated STATUS ON COLOR -1 -1 -1 # color of outline OUTLINECOLOR 255 0 0 END # # Start of legend # LEGEND KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END TEMPLATE "../../templates/legend.html" STATUS ON END # # Start of scalebar # SCALEBAR IMAGECOLOR 255 0 0 LABEL COLOR 0 0 0 SIZE tiny END STYLE 1 SIZE 80 2 COLOR 0 0 0 UNITS KILOMETERS INTERVALS 1 TRANSPARENT TRUE STATUS TRUE END # start of querymap object QUERYMAP SIZE 200 200 STATUS ON STYLE HILITE COLOR 255 0 0 END # start of layer definitions LAYER # name of layer NAME land_shallow_topo_2048 GROUP "RASTER" # projection: if the data is NOT in the same projection as the global # mapfile, you must explicitly give the native projection code of the data # some common projections: # lat/long: epsg:4326 # NRCan LCC: epsg:42304 PROJECTION "init=epsg:4326" END # what type of data is this? TYPE RASTER # always returned with interface STATUS ON # actual data pointer DATA ../../data/land_shallow_topo_2048.tif DUMP TRUE HEADER "../../templates/land_shallow_topo_2048_query_header.html" TEMPLATE "../../templates/land_shallow_topo_2048_query_body.html" TOLERANCE 5 END LAYER # name of layer NAME rivers GROUP "VECTOR" # projection: if the data is NOT in the same projection as the global # mapfile, you must explicitly give the native projection code of the data # some common projections: # lat/long: epsg:4326 # NRCan LCC: epsg:42304 PROJECTION "init=epsg:4326" END # what type of data is this? TYPE LINE # always returned with interface STATUS ON # actual data pointer DATA ../../data/rivers # data is queryable DUMP TRUE # query templates for HTML-based queries HEADER ../../templates/rivers_query_header.html TEMPLATE ../../templates/rivers_query_body.html TOLERANCE 5 # how will this data look? CLASS NAME "Rivers" COLOR 0 0 255 END END LAYER NAME envirodat GROUP "VECTOR" TYPE POINT STATUS ON # this is a remote OGC:WFS CONNECTIONTYPE WFS # the server URL prefix # MapServer will add the OGC:WMS specific # keyword value pairs accordingly #CONNECTION "http://map.ns.ec.gc.ca/envdat/map.aspx?service=WFS&version=1.0.0&request=GetFeature" CONNECTION "http://map.ns.ec.gc.ca/envdat/map.aspx?" PROJECTION "init=epsg:4326" END # base info MapServer needs to know to generate the # OGC:WFS GetFeature request METADATA # MapServer default sends POST # force to GET "wfs_request_method" "GET" # how long (in seconds) should MapServer use # in issuing and receiving the data? "wfs_connectiontimeout" "60" # which version of the OGC:WFS should MapServer communicate with "wfs_version" "1.0.0" # service type for connection # this info is a bit redundant "wfs_service" "WFS" # what is the feature type you are querying "wfs_typename" "envirodat" # what is the spatial extent? "wfs_latlonboundingbox" "-64.6622 46.7594 -52.6808 55.2333" # END # # MapServer will then use this information to generate a string like: # http://map.ns.ec.gc.ca/envdat/map.aspx?version=&service=&request=GetFeature&typename= # # missing required keyword value pairs get generated according # to the application using this mapfile, i.e.: # &bbox, &filter, etc. CLASS NAME "Water Quality Monitoring Stations" COLOR 255 255 0 END END END