Closed tbonfort closed 12 years ago
Author: warmerdam Date: 2007/07/28 - 16:26 Fixed (40a326868dfd90fcb88b87647d212489d71e6f0a (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.
Author: warmerdam Date: 2007/07/28 - 16:27 Actual fix is in 7c3680ad5f8db166b4283bcf6361295d0c3ac4ae (r6417).
Reporter: crschmidt Date: 2007/07/28 - 16:07 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.