WMS map download
Ryan Ollerenshaw
ollerery at ENGR.ORST.EDU
Sun Jul 9 16:38:41 PDT 2006
Quoting "Curtis W. Ruck" <ruckc at yahoo.com>:
> Try using curl with quotes around the url, by having & signs in the command
> you are actually executing multiple commands or trying to.
>
Thank you for you help Curtis. When i try the command:
curl -O "http://neuron/cgi-bin/mapserv?map=../html/mapserver/htdocs/display.map"
a file is infact downloaded but it is not the image that i am looking for,
infact it is not an image at all, i would assume this is the case becuase i am
no longer specifying a layer name in the URL. Is there anyway i can download a
specific layer from MapServer?
>
> Quoting Ryan Ollerenshaw <ollerery at engr.orst.edu>:
>
> > I would like to make it possible for a user to download a full resolution
> map
> > from my Linux based WMS. Does anyone know where I can look to get started
> > implementing such a feature?
>
> It seems that i can use MapServers Web Coverage Services (WCS) to generate an
> image using the following in my mapfile:
>
> OUTPUTFORMAT
> NAME GTiff
> DRIVER "GDAL/GTiff"
> MIMETYPE "image/tiff"
> IMAGEMODE "RGB"
> #IMAGEMODE "PC256"
> EXTENSION "tif"
> END
>
> But i am still not getting the full resolution of the images that i am
> requesting. Also i am still unsure how to download this image from the
> command
> line, cant i use something like curl or sftp? When i try to use curl i get
> the
> following:
>
> -- start output --
>
> [root at neuron ~]# curl -O
>
http://neuron/cgi-bin/mapserv?map=../html/mapserver/htdocs/display.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=themis
> [1] 32392
> [2] 32393
> [3] 32394
> [4] 32395
> [2]- Done SERVICE=WMS
> [3] Done VERSION=1.1.1
> [root at neuron ~]# % Total % Received % Xferd Average Speed Time
> Time
> Time Current
> Dload Upload Total Spent Left Speed
> 100 544 0 544 0 0 7019 0 --:--:-- --:--:-- --:--:--
> 298k
>
> -- end output --
>
> Then nothing seems to happen. Any help with this would be great, thanks?
>
>
>
>
>
More information about the MapServer-users
mailing list