Bug report #9321

Updated by Giovanni Manghi over 5 years ago

Given this rule fragment:

<pre>

<se:Rule><se:Name/><se:Description><se:Title>zona_desc is ''</se:Title></se:Description><ogc:Filter><ogc:PropertyIsEqualTo><ogc:PropertyName>zona_desc</ogc:PropertyName><ogc:Literal/></ogc:PropertyIsEqualTo></ogc:Filter><se:PolygonSymbolizer><se:Fill><se:SvgParameter name="fill">#5e2b00</se:SvgParameter></se:Fill><se:Stroke><se:SvgParameter name="stroke">#000000</se:SvgParameter><se:SvgParameter name="stroke-width">0.26</se:SvgParameter></se:Stroke></se:PolygonSymbolizer></se:Rule>

</pre>



and the call fragment:

<pre>

REQUEST=GetLegendGraphic&FORMAT=image/png&RULE=

</pre>



GetLegendGraphic returns all rules instead of the queried one.



Expected behaviour would be to return legend graphic for the rule with the empty name.



I've checked the code and I see checks for rule.isEmpty() that exclude rule filtering.

Back