[Geoserver-users] GetLegendGraphic

Hello

Could you tell me why geoserver generate link to legend like that (in GetCapabilities file):
http://<server>/geoserver/wms/GetLegendGraphic?VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=20&LAYER=topp:layername

but something like that works too
http://<server>/geoserver/wms?REQUEST=GetLegendGraphic&LAYER=topp:layername&Format=image/png&WIDTH=20&HEIGHT=20

Could I change it somewhere in configuration file!?

--
Best regards,

Hi Daniel,

This is actually an artifact of our old dispatch system, and something that never got changed. We should change it to the proper "ows" style request string, its not something that is configurable. I have opened a jira task for this:

http://jira.codehaus.org/browse/GEOS-1882

-Justin

Daniel Dubiel wrote:

Hello

Could you tell me why geoserver generate link to legend like that (in GetCapabilities file):
http://<server>/geoserver/wms/GetLegendGraphic?VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=20&LAYER=topp:layername

but something like that works too
http://<server>/geoserver/wms?REQUEST=GetLegendGraphic&LAYER=topp:layername&Format=image/png&WIDTH=20&HEIGHT=20

Could I change it somewhere in configuration file!?

--
Justin Deoliveira
The Open Planning Project
jdeolive@anonymised.com

Hello

Ok i will watch this jira task :slight_smile:

This is actually an artifact of our old dispatch system, and something that never got changed. We should change it to the proper "ows" style request string, its not something that is configurable. I have opened a jira task for this:

http://jira.codehaus.org/browse/GEOS-1882

-Justin

Could you tell me why geoserver generate link to legend like that (in GetCapabilities file):
http://<server>/geoserver/wms/GetLegendGraphic?VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=20&LAYER=topp:layername

but something like that works too
http://<server>/geoserver/wms?REQUEST=GetLegendGraphic&LAYER=topp:layername&Format=image/png&WIDTH=20&HEIGHT=20

Could I change it somewhere in configuration file!?

--
Best regards,