Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#2187 closed defect (fixed)

WMS Request for DRIVER AGG/PNG claims 'invalid output format'

Reported by: crschmidt Owned by: warmerdam
Priority: normal Milestone: 5.0 release
Component: AGG Version: unspecified
Severity: normal Keywords: agg wms
Cc: sdlime, assefa

Description

I edited a mapfile to have an outputformat like:

OUTPUTFORMAT

NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB

END

I then requested an image via a URL like:

http://boston.freemap.in/cgi-bin/mapserv-5.0?MAP=%2Fwww%2Ffreemap.in%2Fboston%2Fmap%2Fgmaps-5.0.map&LAYERS=border%2Cwater%2Croads%2Crapid_transit%2Cbuildings&FORMAT=AGG&TRANSPARENT=off&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A2805&BBOX=235717.992188%2C900900.429688%2C236878.089844%2C902060.527344&WIDTH=256&HEIGHT=256

Note the:

FORMAT=AGG

in that line.

The request returned an error message:

msWMSLoadGetMapParams(): Image handling error. Unsupported output format (agg).

FrankW pointed out that mapwms.c has a hardcoded "GD/", "GDAL/".

I added AGG/, and it started working.

Change History (3)

comment:1 by warmerdam, 17 years ago

Cc: sdlime assefa added
Owner: changed from sdlime to warmerdam

comment:2 by warmerdam, 17 years ago

Keywords: agg wms added
Milestone: 5.0 release
Resolution: fixed
Status: newclosed
Version: unspecified

Fixed (r6416) ... should appear in beta2.

      if( format == NULL || 
          (strncasecmp(format->driver, "GD/", 3) != 0 &&
           strncasecmp(format->driver, "GDAL/", 5) != 0 && 
           strncasecmp(format->driver, "AGG/", 4) != 0))

This bug resulted in AGG drivers not being selectable for WMS with FORMAT=, and was new with AGG support. The only release this bug appeared in was 5.0 beta1.

comment:3 by warmerdam, 17 years ago

Actual fix is in r6417.

Note: See TracTickets for help on using tickets.