Hi,
I’m new to Geoserver, but it looks like I’ve jumped straight into the deep end. I’m having an issue with the option.
I have set up rules to render “street” and “minor road” road segments. In the dataset we have some streets and minor roads with the same name. However if I enable VendorOption “group” on both rules GS prefers to label the street rather than the minor road. Where as it should be the other way around. I tried adding an attribute to the dataset called “label_priority” and specified a element. But it doesn’t work as expected.
The only way I can get it to use their respective Labelling styles is if I set group=false on the street. But that is not desirable as I do want to group labels.
Dataset extract:
road_name road_category label_priority
“Saint Vincents Rd” 5 1
“Saint Vincents Rd” 4 2
STREET_1
25000
100000
ogc:PropertyNameroad_category</ogc:PropertyName>
ogc:Literal5</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
ogc:Literal#DDDDDD</ogc:Literal>
ogc:Literalround</ogc:Literal>
ogc:Literalround</ogc:Literal>
ogc:Literal1.0</ogc:Literal>
ogc:PropertyNameroad_name</ogc:PropertyName>
ogc:LiteralTahoma</ogc:Literal>
ogc:Literal9.0</ogc:Literal>
ogc:Literal4.0</ogc:Literal>
ogc:Literal#666666</ogc:Literal>
ogc:PropertyNamelabel_priority</ogc:PropertyName>
true
0
yes
true
MINOR_ROAD_1
10100
100000
ogc:PropertyNameroad_category</ogc:PropertyName>
ogc:Literal4</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
ogc:Literal#FFFA9B</ogc:Literal>
ogc:Literalround</ogc:Literal>
ogc:Literalround</ogc:Literal>
ogc:Literal8.0</ogc:Literal>
ogc:PropertyNameroad_name</ogc:PropertyName>
ogc:LiteralTahoma</ogc:Literal>
ogc:Literal10.0</ogc:Literal>
ogc:Literal#666666</ogc:Literal>
ogc:PropertyNamelabel_priority</ogc:PropertyName>
true
2
yes
true
Any advice would be appreciated.
Daniel
daniel caldeweyher DiplMM, BInfTech (Hon 1) | software developer | property data solutions
telephone: 1300 665 177 | direct line: (07) 3666 2112 | facsimile: 1300 332 335
daniel.caldeweyher@anonymised.com | www.propertydatasolutions.com.au
92 petrie terrace, brisbane q 4000