[Mapserver-users] Querystring parameters for selecting OUTPUTFORMAT
Ed McNierney
ed at topozone.com
Fri Jan 31 13:19:02 PST 2003
Daniel -
Thanks - Frank's already pointed me in the right direction, and I'll pass the code on to him for checkin when it's tested.
- Ed
-----Original Message-----
From: Daniel Morissette [mailto:morissette at dmsolutions.ca]
Sent: Friday, January 31, 2003 4:17 PM
To: Ed McNierney
Cc: mapserver-users at lists.gis.umn.edu
Subject: Re: [Mapserver-users] Querystring parameters for selecting
OUTPUTFORMAT
Ed McNierney wrote:
>
> Specifically, I'm trying to define several named OUTPUTFORMATs in the MAP file and select one through a querystring parameter. First, if there's already a way to do this, let me know because I couldn't find it.
>
I dunno. I'll leave that one to Steve or Frank.
> I can define multiple OUTPUTFORMATs but I only get either the first one or the one specified in the IMAGETYPE statement. I added code to mapserv.c in the "obvious place" where the CGI form variables are parsed; this looks for an IMAGETYPE variable and sets msObj->Map->imagetype to that string value. However, it appears that in the earlier processing of the MAP file, the outputformats are enumerated and the default selected. My setting of msObj->Map->imagetype has no effect because it seems the decisions' already been made.
>
You'll have to call msSelectOutputFormat() for the output format change
to take effect.
--
------------------------------------------------------------
Daniel Morissette morissette at dmsolutions.ca
DM Solutions Group http://www.dmsolutions.ca/
------------------------------------------------------------
More information about the MapServer-users
mailing list