![]() |
Publishing to the OGC WMS Specification Using MapServerMapServer is an Open Source web mapping engine, and its homepage is located at the UMN MapServer site. The following instructions will assist you with your MapServer experience. InstallationWindowsThe simplest way to install MapServer on Win32 is to use the MS4W utility, which contains a ready-to-use MapServer installation, as well as an Apache Web Server. Simply extract the zipfile to the root of your drive, start the Apache Server and you're running MapServer! Linux, Mac, and Other PlatformsSee the MapServer Compilation Wiki page for for install instructions on various platforms. ConfigurationWMS requests are handled by the "mapserv" CGI program. Not all versions of the mapserv program do include WMS support (it is included by default when you compile together with the PROJ library), so the first step is to check that your mapserv executable includes WMS support. One way to verify this is to use the "-v" command-line switch and look for "SUPPORTS=WMS_SERVER". Example 1. On Unix: $ ./mapserv -v MapServer version 4.2-beta1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Example 2. On Windows: C:\apache\cgi-bin> mapserv -v MapServer version 4.2-beta1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Develop MapServer MapfileMapServer's .map files control data appearance and symbology. The task is for you to be able to take your own data and load it into a mapfile for MapServer to display the data. There are several resources that will assist you:
Loading Different Types of Data Into MapServerMapServer can read many different data formats directly, without any data conversions. Below is a list of resources depending on the format of your data.
Configuring Your MapFile to Serve Your Data Through the OGC's WMS SpecificationOnce you have your data ready to be displayed and you are ready to share it with other Gulf Of Maine members, you now have to configure your MapServer to serve your data through the Web Map Service standard. Here are some good links that will help you:
|