[Mapserver-users] Querystring parameters for selecting OUTPUTFORMAT

Ed McNierney ed at topozone.com
Fri Jan 31 16:01:35 EST 2003


Folks -

I'm trying to use the new OUTPUTFORMAT support in 3.7 and I'm getting lost.

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 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.

There's a lot of new code here and I'm wandering through it but haven't found the answer yet.  Any pointers would be appreciated - thanks!

	- Ed

Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA  01863
ed at topozone.com
(978) 251-4242 




More information about the mapserver-users mailing list