Ticket #2187 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

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

Reported by: crschmidt Assigned to: 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

07/28/07 10:21:27 changed by warmerdam

  • owner changed from sdlime to warmerdam.
  • cc set to sdlime, assefa.

07/28/07 10:26:34 changed by warmerdam

  • keywords set to agg wms.
  • status changed from new to closed.
  • version set to unspecified.
  • resolution set to fixed.
  • milestone set to 5.0 release.

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.

07/28/07 10:27:48 changed by warmerdam

Actual fix is in r6417.