[Mapbender-users] Antw: Re: Legend

Andreas Schmitz andreas.schmitz at wheregroup.com
Tue Dec 22 05:12:05 PST 2015


Gerhard Mocza wrote:

Hi,

> Thank you for your config-help.
> This made it quite clear, proxy-config is not the reasson for my
> legend-issue.
> Must be encoding of LegendGraphics ! Maybe in 3.0.5.2 is a checkbox
> anywhere or a switch in a config-file, where encoding could be turned
> off ?

you can also try to fix your server config instead. Percent-encoding
the & makes those requests actually invalid. Although Mapbender 3
tries to make sense of the request anyway, a proper solution would be
to fix the server. A proper GetCapabilities snippet looks like this:

<LegendURL width="154" height="81">
  <Format>image/png</Format>
  <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://deegree3-demo.deegree.org/utah-workspace/services?request=GetLegendGraphic&version=1.1.1&service=WMS&layer=cities&style=Cities&format=image/png"/>
</LegendURL>

Take note how the & are SGML/XML quoted as & and not percent
encoded.

Best regards, Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://lists.osgeo.org/pipermail/mapbender_users/attachments/20151222/b2ee2b9b/attachment.sig>


More information about the Mapbender_users mailing list