docs:gis:mapserver:static_cgi_usage

This is an old revision of the document!


Static CGI Usage for Mapserver

Just create a .map file as usual, and insert an image into your html document like this:

<img src="/cgi-bin/mapserv?mode=map&map=/gis/maps/example.map&layers=all&program=/cgi-bin/mapserv" width="640" height="480" />
modemap mode tells mapserver to generate and return a static image
mapthe location of the map file
layersshow all layers, type the layers you want, or you can use multiple layer=<layername> statements
programthis should be the same as the location for the running mapserv executable
  • docs/gis/mapserver/static_cgi_usage.1158961620.txt.gz
  • Last modified: 2008/08/03 00:25
  • (external edit)