How can I know the name of the generated map

Steve Lime Steve.Lime at DNR.STATE.MN.US
Tue Aug 8 23:01:17 EDT 2006


Luis: Mode=map streams the created image back to the requestor. There is no file actually written to disk. A file is only created with mode=browse or the non-image query modes (e.g. query, nquery, itemquery and so on). In those cases MapServer must return a template of some type. There's no reason it has to be HTML or contain image tags.

For example, you could have a simple template like that only contains the string "[img]:[mapext]" so when processed you'd get the created image name plus it's extent. That's not a typical use case though...

Steve

>>> Luis Treviño <ltrevinoh at GMAIL.COM> 08/08/06 7:20 PM >>>
Hi,

I have an app that uses mapserver to display a generated map within other
stuff (it́s a local application) with mode=map. I want to use the generated
gif file (map) for other purposes also, (like including it in a doc file or
as attachment in an e-mail)

Can I tell to mapserver the name of the output gif file that I want?
How can I know the name of the gif file just generated by mapserver?
(without using the html <img> tag)

any ideas?

Thanks in advance
Luis



More information about the mapserver-users mailing list