[Geoserver-devel] [JIRA] (GEOS-10494) Unable to use database color in legend

Jerry Fast created an issue

GeoServer / BugGEOS-10494

Unable to use database color in legend

Issue Type:

BugBug

Affects Versions:

2.20.2

Assignee:

Unassigned

Created:

18/May/22 8:37 PM

Environment:

I am trying to use a database property in order to generate the legend’s color but it doesn’t work. My SLD style contains the following <PolygonSymbolizer>:

      <PolygonSymbolizer>
        <Fill>
          <CssParameter name="fill">
            <ogc:PropertyName>color</ogc:PropertyName>
          </CssParameter>
          <CssParameter name="fill-opacity">
            <ogc:Literal>0.7</ogc:Literal>
          </CssParameter>
        </Fill>
      </PolygonSymbolizer>

The polygon is rendered with the correct color, but the legend does not render any colors.

The GET request I am using is like the following:
https://my-geoserver.com/geoserver/esris/wms?REQUEST=GetLegendGraphic&LAYER=esris:floods&VERSION=1.1.1&FORMAT=image/png&WIDTH=60&HEIGHT=30

Priority:

MediumMedium

Reporter:

Jerry Fast

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#100198-sha1:0f60739)

Atlassian logo