[mapserver-users] Saving an image from a query

Rahkonen Jukka Jukka.Rahkonen at mmmtike.fi
Tue Oct 30 08:37:11 PDT 2012


Hi,

Perhaps wget thinks that certain characters are cutting the URL string. Try 
wget "http://mysite.com/mapserv.cgi?map=../../mapfiles/demo.map&layer=land&mode=map&FORMAT=image/png" -O output.png

We have used wget a lot for downloading data from WCS so I guarantee you will make it work by reading documents and trying just like we did.

-Jukka Rahkonen-

David Quinn wrote:
 
> Hi List,
> 
> I'm trying to understand how to save an image as a result of a query.
> One approach that I have experimented with is using `wget` to save the file
> but I've been getting an error message (I asked a question on this here:
> http://gis.stackexchange.com/questions/37813/how-to-save-mapserver-
> output-to-a-file
> )
> 
> Is there a better way than using "wget
> http://mysite.com/mapserv.cgi?map=../../mapfiles/demo.map&layer=land
> &mode=map&FORMAT=image/png"
> to store a image resulting from a query?
> 
> After using "wget" my log shows the following message:
> 
> [Tue Oct 30 14:49:02 2012].580951 msWCSDispatch20(): wrong service (none)
> [Tue Oct 30 14:49:02 2012].581041 msWCSParseRequest(): request is KVP.
> [Tue Oct 30 14:49:02 2012].581049 msWCSDispatch(): SERVICE and REQUEST
> not included [Tue Oct 30 14:49:02 2012].581064 mapserv(): Web application
> error.
> Traditional BROWSE mode requires a TEMPLATE in the WEB section, but none
> was provided.
> 
> Thanks,
> David
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users


More information about the mapserver-users mailing list