DOKK / manpages / debian 12 / mapserver-bin / mapserv.1.en
mapserv(1) mapserv(1)

mapserv - mapserver CGI interface


mapserv
[-v | [-nh] QUERY_STRING=" QUERY_STRING" ]

mapserv provides commandline access to the MapServer CGI interface.

Display mapserver version and build options.
Suppress HTTP headers.
CGI QUERY_STRING parameter, e.g. QUERY_STRING="MAP=/home/user/wfs.map&SERVICE=WFS&REQUEST=GetCapabilities"

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


mapserv "QUERY_STRING=map=/home/user/wms.map&mode=map"

To suppress the HTTP headers, you can use the "-nh" switch, such as:


mapserv -nh "QUERY_STRING=map=/home/user/wms.map&mode=map"

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


mapserv -nh "QUERY_STRING=map=/home/user/wms.map&mode=map" > test.png


MapServer CGI Documentation ⟨http://mapserver.org/cgi/index.html⟩

18 January 2023