[mapserver-users] Saving an image from a query
David Quinn
daithiquinn at gmail.com
Tue Oct 30 09:22:16 PDT 2012
Jukka's suggestion of using "
http://mysite.com/mapserv.cgi?map=../../mapfiles/demo.map&layer=land&mode=map&FORMAT=image/png"
-O output.png
worked. Thanks for the suggestion.
I have not tried any of the other approaches yet.
-David
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: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-
users-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka
Sent: Tuesday, October 30, 2012 10:37 AM
To: 'mapserver-users at lists.osgeo.org'
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
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
On Tue, Oct 30, 2012 at 11:04 AM, David Quinn <daithiquinn at gmail.com> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20121030/3e3785ea/attachment.htm>
More information about the MapServer-users
mailing list