Retrieving map image via URL

Frank Koormann frank.koormann at intevation.de
Fri Mar 23 03:21:21 EST 2001


hi,

* Ma (marin at here.is) [010323 00:34]:
> and where in this example is the gif file and how to get it with wget?
> :>
> another one?

???

> 
> Jaynika Barot wrote:
> 
> > http://localhost/mapserver/bin/mapserv.exe?mode=map&layer=layer1&imgext=3641
> > 07.000000+3773595.000000+365719.000000+3774689.000000&map=c%3A%5CInetpub%5Cw
> > wwroot%5Cms_demo%5Cdmpdemo.map
> >
> > -jaynika

The URL given by Jaynika is a valid example  (at least if you adjjust
the path settings for your needs): It invokes the MapServer CGI to 
return a map (gif or png depending on your compilation) as specified by
the CGI parameters (delimited by "&").

Issuing 

wget "http://localhost/mapserver/bin/mapserv.exe?mode=map&layer=layer1&imgext=364107.000000+3773595.000000+365719.000000+3774689.000000&map=c%3A%5CInetpub%5Cwwwroot%5Cms_demo%5Cdmpdemo.map"

would save the image to your file system (with a lengthy file name, but
thats up to wget).

Cheers,

   Frank
    

-- 
Frank Koormann                              http://intevation.net/~frank/
 Professional Service around Free Software         http://intevation.net/
 FreeGIS Project                                   http://freegis.org/



More information about the mapserver-users mailing list