[Mapserver-users] defining imageformats

Frank Warmerdam warmerdam at pobox.com
Thu Jul 3 11:21:08 EDT 2003


niklas wörmann wrote:
> Hi!
> my map file contains the following
> 
> OUTPUTFORMAT
>     NAME "jpg80"
>     DRIVER "GD/JPEG"
>     IMAGEMODE RGB
>     FORMATOPTION "QUALITY=80"
>     EXTENSION "jpg"
>   END
> 
> and
> 
> IMAGETYPE "jpg80"
> 
> and upon cgi get i receive:
> 
> getSymbol(): Symbol definition error. (jpg80):(13)
> 
> i have tried using quotes/ no quotes to no avail.
> 
> how would i go about defining my own outputformat?
>  i have a feeling  it is about where in the map file things are declared..

Niklas,

I have tried this with MapServer 4 and no problems.  Note that you don't
normally need to quote the name passed to NAME or IMAGETYPE, but you can.

Is it possible you are using a 3.6 based MapServer, not MapServer 4 (previously
3.7)?

Best regards,

-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent





More information about the mapserver-users mailing list