Creating a designated graphics file
Steve Lime
steve.lime at DNR.STATE.MN.US
Wed Jan 4 16:09:51 PST 2006
Chip: This is probably is possible from MapServer CGI as it sits right now. There is a CGI parameter called "id" that allows you to override the normal computed timestamp. This was added originally so you could mimic something like a session where the id becomes a session id.
The output file name is built using the map NAME, the id and the image extension. So, I suppose if you set the map NAME to an empty string and the id to 'thismap' it might just work.
The caveat is that MapServer will only write images to disk in browse mode so you could make the call and have MapServer create the image, but you'd get something back- the browse template. That could be just an XML snippet or whatever was in your template file.
I've not tried this but it should work. I did check the CGI source just to be sure. Lemme know if you test this.
Steve
>>> Chip Taylor <work at XWB.COM> 01/04/06 2:40 PM >>>
Is there a way to use MapServer CGI to output a graphics file (GIF or JPG)
to a designated location with a designated name on a Windows/IIS server?
For example, I'd like to be able to call mapserver.exe and tell it to name
the file "thismap.jpg" and create it in directory c:\wwwroot\projects\maps\
Chip Taylor
Prepared Response, Inc
More information about the MapServer-users
mailing list