I went and looked at the stackexchange thread. . . . A thought . . . In your map file, in the WEB block, try adding a line like this:
QUERYFORMAT "image/png" Bobb >> -----Original Message----- >> From: [email protected] [mailto:mapserver- >> [email protected]] On Behalf Of Rahkonen Jukka >> Sent: Tuesday, October 30, 2012 10:37 AM >> To: '[email protected]' >> Subject: Re: [mapserver-users] Saving an image from a query >> >> 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=l >> and >> > &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 >> > [email protected] >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> _______________________________________________ >> mapserver-users mailing list >> [email protected] >> http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
