[Geoserver-devel] [JIRA] (GEOS-9542) Legend image resize doesn't work properly for big legend images

Marco Volpini created an issue

GeoServer / BugGEOS-9542

Legend image resize doesn’t work properly for big legend images

Issue Type:

BugBug

Assignee:

Unassigned

Attachments:

foo.xml, large_legend_res.png

Created:

17/Mar/20 5:51 PM

Priority:

MediumMedium

Reporter:

Marco Volpini


put the attached png files under style directory.
foo.xml
put in the layouts folder the file foo.xml.

In the styles editor add as online resource large_legend_res.png, click on autodetect image size and submit.

Perform the following getMap http://localhost:8080/geoserver/nurc/wms?service=WMS&version=1.1.0&request=GetMap&format_options=layout:foo&layers=nurc%3AArc_Sample&bbox=-180.0%2C-90.0%2C180.0%2C90.0&width=768&height=384&srs=EPSG%3A4326&format=image%2Fjpeg

the legend is correctly displayed.

Edit foo.xml file by replacing auto value inside size attribute with a smaller custom size eg 500, 50.

the legend is cut off

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100122-sha1:87fe5bb)

Atlassian logo