Home | Docs | Issue Tracker | FAQ | Download
MapServer logo

Previous topic

MapServer CGI Introduction

Next topic

Map Context Files

This Page

Quick search

Enter search terms or a module, class or function name.

mapservΒΆ

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

mapserv "QUERY_STRING=map=/ms4w/apps/gmap/htdocs/gmap75.map&mode=map"

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

mapserv -nh "QUERY_STRING=map=/ms4w/apps/gmap/htdocs/gmap75.map&mode=map"

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

mapserv -nh "QUERY_STRING=map=/ms4w/apps/gmap/htdocs/gmap75.map&mode=map" > test.png