Defines how a web interface will operate. Starts with
the keyword WEB and terminates with the keyword END.
IMAGEPATH
mandatory |
Path to the temporary directory fro writing
temporary files and images. Must be writable by the
user the web server is running as. Must end with a
"/". Hint: use forward slash.
Value: [path]
|
IMAGEURL
mandatory |
Base URL for IMAGEPATH. This is the URL
respectively the virtual directory that will take
the web browser to IMAGEPATH to get the images.
Value: [url|virtual directory]
|
EMPTY
optional |
URL to forward users to if a query fails. If not
defined the value for ERROR is used.
Value: [url]
|
ERROR
optional, however highly suggested! |
URL to forward users to if an error occurs. Ugly
old MapServer error messages will appear if this is
not defined.
Values: [url]
|
LOG
optional |
File to log MapServer activity in. Must be writable
by the user the web server is running as.
Value: [filename]
|
MINSCALE
optional |
Minimum scale at which this interface is valid.
When a user requests a map at a smaller scale,
MapServer automatically returns the map at this
scale. This effectively prevents the user from
zooming in too far.
Value: [double]
|
MINTEMPLATE
optional |
Template to be used if above the minimum scale for
the app, useful for nesting apps.
Value: [file|url]
|
MAXSCALE
optional |
Maximum scale at which this interface is valid.
When a user requests a map at a bigger scale,
MapServer automatically returns the map at this
scale. This effectively prevents user from zooming
too far out.
Value: [double]
|
MAXTEMPLATE
optional |
Template to be used if above the maximum scale for
the app, useful for nesting apps.
Value: [file|url]
|
TEMPLATE
optional |
Template file or URL to use in presenting the
results to the user in an interactive mode (i.e.
map generates map and so on ... ).
Value: [file|url]
|
HEADER
optional |
Template to use before everything else has been
sent. Multiresult query modes only.
Values: [filename]
|
FOOTER
optional |
Template to use after anything else is sent.
Multiresult query modes only.
Values: [filename]
|
METADATA
optional |
This keyword allows for arbitrary data to be stored
as name value pairs. This is used with OGC WMS to
define things such as layer title. It can also
allow more flexibility in creating templates, as
anything you put in here will be accessible via
template tags.
Example:
METADATA
title "Map of the USA"
author "Forrest Gump"
END
|