Skip to content

Fixed size of symbols in legends if size is calculated#1914

Merged
copierrj merged 1 commit intodeegree:mainfrom
lat-lon:fix/lendendSymbolsIfSizeIsCalculated-93
Jan 28, 2026
Merged

Fixed size of symbols in legends if size is calculated#1914
copierrj merged 1 commit intodeegree:mainfrom
lat-lon:fix/lendendSymbolsIfSizeIsCalculated-93

Conversation

@lgoltz
Copy link
Copy Markdown
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
Copy Markdown
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
@copierrj copierrj merged commit d4a5961 into deegree:main Jan 28, 2026
1 check passed
@tfr42 tfr42 deleted the fix/lendendSymbolsIfSizeIsCalculated-93 branch January 28, 2026 16:44
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.

5 participants