[Geoserver-devel] [JIRA] (GEOS-9177) external legend graphics problems using GeoServer 2.14

Tobias Warneke created an issue

GeoServer / BugGEOS-9177

external legend graphics problems using GeoServer 2.14

Issue Type:

BugBug

Affects Versions:

2.14.3

Assignee:

Unassigned

Components:

styling

Created:

08/Apr/19 10:07 AM

Priority:

MediumMedium

Reporter:

Tobias Warneke

Due to a complex style, we want to use an externally generated image as a legend. Therefore we put it right into the style configuration as legend graphics.

  1. The url is only recognized, if it ends with a valid extension (we use a dummy parameter &helper=legend.png).

then within the capabilities document the legend part is:

<LegendURL width=“160” height=“144”>
<Format>image/png</Format>
<OnlineResource xmlns:xlink=“http://www.w3.org/1999/xlink” xlink:type=“simple” xlink:href=“http://192.168.10.115:8088/geoserver/styles/test_fh2_postgresql/[http://192.168.10.115:8088/gm.gisserver/rest/projects/test_fh2_postgresql/reports/generate/simple?reportid=201.1000&amp;reporttype=PNG&amp;helper=legend.png](http://192.168.10.115:8088/gm.gisserver/rest/projects/test_fh2_postgresql/reports/generate/simple?reportid=201.1000&amp;reporttype=PNG&amp;helper=legend.png)”/>
</LegendURL>

You see, the workspace URL is attached in front of it (http://192.168.10.115:8088/geoserver/styles/test_fh2_postgresql/)

  1. How is a GetLegendGraphic request formulated? We don’t know the size of our generated image. We want to set with / height for geoserver generated legend graphics. If we put width / height = 20 into our URL, the complete external legend graphics is scaled to 20x20.

Best regards

Tobias

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#100099-sha1:3a66772)

Atlassian logo