[mapserver-users] Saving an image from a query

David Quinn daithiquinn at gmail.com
Tue Oct 30 08:04:35 PDT 2012


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


More information about the mapserver-users mailing list