Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Current »

In MapServer the .MAP file is a workspace or project of layers that will be available.  This is the base that iShare then performs queries against via the MapSource (XML) file.

This is a brief overview of how to create a .map file and also to test it to ensure that it is correctly configured.

The .MAP file is a text file that describes a variety of items or objects.  Each object has a keyword to open it and a corresponding END to close it.  

Comments are used with a #.

ObjectDescriptionMandatory
MAPThis is the all encompassing objectYes
QUERYMAPThis is required if you wish to perform a Zoom to Polygon for My AreaYes
OUTPUTFORMAT

Defines the output image type.

This is optional UNLESS you are using ANTIALIASING / TRANSPARENCY – also for image quality we normally suggest this is implemented.

It will increase the size of the output image but there is a trade off between quality and size.

 

More information can be found at the MapServer website: http://www.mapserver.org/mapfile/outputformat.html

No
WEBDefines output paths required by iShareYes
LAYERMost common object iShare use defining what data to showYes
LAYER -> CLASSAllow classifications against datasetsNo
LAYER -> CLASS -> STYLEDefine styles for featuresNo

From version 5.2.0 you can edit your .map file directly from within Studio using the Map Editor .

For details of on how to configure your MapServer .MAP file please refer to the MapServer Mapfile documentation.

  • No labels