Hi

For our service found here https://eggs.gs.cloud.ga.gov.au/ we have a static 
legend that we add to our styles. In the GetCapabilities we get the following 
LegendURL object

<LegendURL width="171" height="270">
<Format>image/jpeg</Format>
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"; xlink:type="simple" 
xlink:href="http://eggs.gs.cloud.ga.gov.au/ows?service=WMS&request=GetLegendGraphic&format=image%2Fjpeg&width=20&height=20&layer=eggs%3ABasePaleozoicGrid"/>
</LegendURL>

The width and height attributes are properly expressed (171,270), but the width 
and height parameters in the OnlineResource xlink:href are 20,20.This mismatch 
causes problems when someone uses the HREF directly, the image becomes weirdly 
downscaled (click below)

http://eggs.gs.cloud.ga.gov.au/ows?service=WMS&request=GetLegendGraphic&format=image%2Fjpeg&width=20&height=20&layer=eggs%3ABasePaleozoicGrid

Is there anyway to encode the width and height attributes into the 
OnlineResource href parameters?


Michael Sexton

Geoscience Australia Disclaimer: This e-mail (and files transmitted with it) is 
intended only for the person or entity to which it is addressed. If you are not 
the intended recipient, then you have received this e-mail by mistake and any 
use, dissemination, forwarding, printing or copying of this e-mail and its file 
attachments is prohibited. The security of emails transmitted cannot be 
guaranteed; by forwarding or replying to this email, you acknowledge and accept 
these risks.
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to