[mapserver-dev] 5.2rc1: GetLegendGraphic change?

Yewondwossen Assefa yassefa at dmsolutions.ca
Fri Jul 11 10:22:18 EDT 2008


Bart,

   I am not sure why would get this behavior since effectively STYLE is 
an optional parameter.  Looking into the code, It seems that the error 
message reported could only happen if STYLE is defined.
I have done local tests on windows/linux (using the same wms parameters 
as your example) with MapServer svn and I get the expected result.

Could you send me a simple sample that I can look at? I think if there 
is an issue we should address it before the 5.2 release.

Best Regards,


bartvde at osgis.nl wrote:
> Hi list,
> 
> using 5.2rc1, something changed, my GetLegendGraphic requests are not
> working anymore.
> 
> A request like:
> http://test.intranet.rijkswaterstaat.nl/services/geoservices/basispakket/nationaalwegenbestand?service=WMS&format=image/png&request=GetLegendGraphic&version=1.1.1&layer=AAA62
> 
> yields now an exception:
> <?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?>
> <!DOCTYPE ServiceExceptionReport SYSTEM
> "http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd">
> <ServiceExceptionReport version="1.1.1">
> <ServiceException code="StyleNotDefined">
> msWMSGetLegendGraphic(): WMS server error. style used in the STYLE
> parameter is not defined on the layer.
> </ServiceException>
> </ServiceExceptionReport>
> 
> Which I don't get since STYLE is an optional parameter.
> 
> Did something break?
> 
> Best regards,
> Bart
> 
> _______________________________________________
> mapserver-dev mailing list
> mapserver-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
> 


-- 
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst

Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925
----------------------------------------------------------------



More information about the mapserver-dev mailing list