Hi list,
I wonder if anyone else has seen something like this.
I have a PostGIS table defined basically as
CREATE TABLE vdline
(
ogc_fid serial NOT NULL,
hast_gener character varying,
kode_hast0 character varying,
hast_lokal double precision,
hast_gaeld double precision,
hast_anbef double precision,
hast_var_h character varying,
geometri geometry(MultiLineString),
CONSTRAINT vdline_pkey PRIMARY KEY (ogc_fid)
)
WITH (
OIDS=FALSE
);
I publish it through GeoServer 2.9.1, using a style looking basically like this:
<?xml version="1.0" encoding="ISO-8859-1"?>vdline
HastighedsgrænserVisualisering af hastighedsgrænsedata
Skiltet hastighed 40
Skiltet hastighed 40 km/tSkiltet hastighed (hast_lokal) 40 km/t. Etiket viser gældende hastighed (hast_gaeld)
ogc:PropertyNamehast_lokal</ogc:PropertyName>
ogc:Literal40</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
#0000ff
1
<ogc:Function name=“round”>ogc:PropertyNamehast_gaeld</ogc:PropertyName></ogc:Function>
10
Arial
#0000aa
0
ogc:Literal1</ogc:Literal>
#f4faf6
#0000aa
50
true
true
true
The complete SLD contains multiple s for various values of hast_lokal.
If I make a GetLegendGraphic-request like
I get the error:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>java.lang.IllegalArgumentException: Filter Function problem for function round argument #0 - expected type float
Filter Function problem for function round argument #0 - expected type float
If I modify the SLD, specifically the , removing the <ogc:Function name=”round”>, so that it becomes
ogc:PropertyNamehast_gaeld</ogc:PropertyName>
I get a nice legend. Is that a bug?
Regards,
/julian