[Mapserver-users] Querystring parameters for selecting OUTPUTFORMAT

Daniel Morissette morissette at dmsolutions.ca
Fri Jan 31 16:16:41 EST 2003


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