Opened 16 years ago

Last modified 15 years ago

#2639 new defect

MapServer defaults map->imagetype to OutputFormats blindly...

Reported by: sdlime Owned by: sdlime
Priority: normal Milestone: 6.0 release
Component: MapServer C Library Version: unspecified
Severity: minor Keywords:
Cc: warmerdam

Description

With RFC36 it is possible to define an output format that cannot be used to render a map (e.g. a TEMPLATE). It seems that the imagetype defaults to the first defined output format regardless. If one defines an TEMPLATE output format, no image output formats and no explicit IMAGETYPE then any map drawing will throw an error.

The solution is probably to make sure the format assigned to map->imagetype is capable of rendering an image. Right now only the template driver is not.

Steve

Change History (2)

comment:1 by sdlime, 16 years ago

Milestone: 5.2 release5.4 release

There is a workaround, explicitly set an IMAGETYPE, so we can deal with in 5.4 after some discussion.

Steve

comment:2 by sdlime, 15 years ago

Milestone: 5.6 release6.0 release
Severity: normalminor

I'm surprised this hasn't bitten people. Tells me either IMAGETYPE is widely used or the new style templating isn't. I don't know that there's a particularly easy fix anyway.

Steve

Note: See TracTickets for help on using tickets.