mapserv(1)

mapserv1

Mapserver cgi interface

Usage

FCmapservF [0] [{FC-vF [0] | [FC-nhF [0]] QUERY_STRING=" QUERY_STRING"}]

Overview

mapserv provides commandline access to the MapServer CGI interface.

Options

FC-vF[0]

Display mapserver version and build options.

FC-nhF[0]

Suppress HTTP headers.

FCQUERY_STRINGF[0]="QUERY_STRING"

CGI QUERY_STRING parameter, e.g. QUERY_STRING="MAP=/home/user/wfs.map&SERVICE=WFS&REQUEST=GetCapabilities"

Examples

The CGI interface can be tested at the commandline by using the "QUERY_STRING" switch, such as:

FC
       mapserv "QUERY_STRING=map=/home/user/wms.map&mode=map"
      F[0]

To suppress the HTTP headers, you can use the "FC-nhF[0]" switch, such as:

FC
       mapserv -nh "QUERY_STRING=map=/home/user/wms.map&mode=map"
      F[0]

To save the output into an image file, use the pipe command such as:

FC
       mapserv -nh "QUERY_STRING=map=/home/user/wms.map&mode=map" > test.png
      F[0]

Releases

6 releases since Debian 8 (Jessie); the text changed 5 times.

  1. 8
  2. 9
  3. 10
  4. 11
  5. 12
  6. 13

From mapserver-bin 8.4.0-4+deb13u2 in Debian 13 (Trixie). Parsed by carta from the page's man source.