Personal tools
You are here: Home Documentation References

CGI MapServer

Document Actions
Mapserv is the CGI portion for the MapServer package. It handles user input and directs image creation or query requests. The program accepts input via either "GET" or "POST" methods and can be used in an interactive manner or as an image engine.

All content on one page (useful for printing, presentation mode etc.)

  1. Introduction

    General notes regarding the MapServer CGI.

  2. Controls

    The mapserv CGI binary accepts various CGI variables as described below.

  3. Map Context Support Through CGI

    OGC Map context files contain layer information that can be used to request WMS layers. For more information on Map Context files see the How-To. MapServer CGI allows you to load a map context through the use of a CONTEXT parameter, and you can point this parameter to a locally stored context file or a context file accessible through a URL.

All content on one page (useful for printing, presentation mode etc.)

This Reference Manual applies to: MapServer 4.6, MapServer 4.8

by Frank Koormann last modified 2005-12-12 11:57
Contributors: Steve Lime, Frank Koormann, Jeff McKenna, Daniel Morissette

[imgxy]

Posted by Peter Slizik at 2007-01-29 05:21
Hello,

I think the [imgxy] parameter is not sufficiently documented here. Here's what I've found in the mapserver-users archives:

When you don't click on the map itself, e.g. you click on the submit-type button of the form, then imgxy will be used as the center point for zooming.

For example, my img size is 220 300, then my form has this line:
<input type="hidden" name="imgxy" value="110 150">

Preferably use
<input type="hidden" name="imgxy" value="[center]">

(When you click on the map then img.x and img.y will be used.)

Edited from
http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0203/msg00409.html

(This post suggested using x/2 - 1, y/2-1 values; however, the -1 offset shifts the map a little.)

Powered by Plone