I'm using priority option for labels in my geoserver SLD stylesheet because I have multiple overlapping points.
<Priority>
<ogc:PropertyName>language</ogc:PropertyName>
</Priority>
The problem is, geoserver renders both labels if there are two overlapping points. The priority one is above, and the another one is below.
I need only one of those labels (top priority one) to be rendered.
EDIT:
Whole TextSymbolizer looks like this:
<TextSymbolizer>
<Label>
<ogc:PropertyName>pisanjeimena</ogc:PropertyName>
</Label>
<Priority>
<ogc:PropertyName>language</ogc:PropertyName>
</Priority>
<VendorOption name="group">false</VendorOption>
<VendorOption name="labelAllGroup">true</VendorOption>
<VendorOption name="spaceAround">10</VendorOption> <!--allow labels to overlap-->
<!--<VendorOption name="followLine">true</VendorOption>--> <!--option forces a label to follow the curve of the line-->
<VendorOption name="maxDisplacement">30</VendorOption> <!--option controls the displacement of the label along a line-->
<VendorOption name="repeat">100</VendorOption> <!--option determines how often GeoServer displays labels along a line-->
<VendorOption name="autoWrap">150</VendorOption> <!--option wraps labels when they exceed the given width (in pixels)-->
<!--<VendorOption name="conflictResolution">false</VendorOption>--> <!--conflictResolution option to false causes this label to bypass conflict resolution-->
<VendorOption name="goodnessOfFit">0.3</VendorOption>
<Halo>
<Radius>2</Radius>
<Fill>
<CssParameter name="fill">#FFFFFF</CssParameter>
<CssParameter name="fill-opacity">0.6</CssParameter>
</Fill>
</Halo>
<Font>
<CssParameter name="font-family">Arial</CssParameter>
<CssParameter name="font-size">12</CssParameter>
<CssParameter name="font-style">normal</CssParameter>
<CssParameter name="font-weight">bold</CssParameter>
<CssParameter name="fill-opacity">0.6</CssParameter>
</Font>
<LabelPlacement>
<PointPlacement>
<AnchorPoint>
<AnchorPointX>0.5</AnchorPointX>
<AnchorPointY>0.0</AnchorPointY>
</AnchorPoint>
<Displacement>
<DisplacementX>0</DisplacementX>
<DisplacementY>5</DisplacementY>
</Displacement>
</PointPlacement>
</LabelPlacement>
<Fill>
<CssParameter name="fill"><ogc:PropertyName>boja</ogc:PropertyName></CssParameter>
</Fill>
</TextSymbolizer>
Language property that is used in <Priority>
is numerical value (language ID). Language with higher ID should be a priority one.