Skip to content

Conversation

@lgoltz
Copy link
Contributor

@lgoltz lgoltz commented Dec 16, 2025

If the size of a symbol is calculated, e.g.:

<Size>
  <ogc:Function name="idiv">
    <ogc:Literal>50000</ogc:Literal>
    <ogc:Function name="GetCurrentScale" />
  </ogc:Function>
</Size>

The legend created by deegree creates not readable legends:

GetLegendGraphic

This PR fixes this by using a default size of 6 if the size of the symbol is -1.

Created legend after the fix:
GetLegendGraphic_fixed

@lgoltz lgoltz added the WMS deegree Web Map Service label Dec 16, 2025
@lgoltz lgoltz added this to the 3.6.6 milestone Dec 16, 2025
@julianzz98
Copy link
Contributor

Change/fix was successfully tested on a local environment!

See results (without transparency):
Screenshot from 2025-12-16 14-08-08

@tfr42 tfr42 changed the title Fix size of symbols in legends ifsize is calculated Fixed size of symbols in legends if size is calculated Dec 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

WMS deegree Web Map Service

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants