other versions
- jessie 6.4.1-5+deb8u3
- jessie-backports 7.0.4-1~bpo8+1
- stretch 7.0.4-2
- testing 7.2.2-1
- stretch-backports 7.2.2-1~bpo9+1
- unstable 7.2.2-1
mapserv(1) | mapserv(1) |
NAME¶
mapserv - mapserver CGI interfaceSYNOPSIS¶
mapserv
[ -v | [ -nh] QUERY_STRING=" QUERY_STRING" ]
DESCRIPTION¶
mapserv provides commandline access to the MapServer CGI interface.OPTIONS¶
- -v
- Display mapserver version and build options.
- -nh
- Suppress HTTP headers.
- QUERY_STRING="QUERY_STRING"
- CGI QUERY_STRING parameter, e.g. QUERY_STRING="MAP=/home/user/wfs.map&SERVICE=WFS&REQUEST=GetCapabilities"
EXAMPLE¶
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
SEE ALSO¶
MapServer CGI Documentation ⟨http://mapserver.org/cgi/index.html⟩
18 January 2017 |