We are using GeoServer 2.10.0. While displaying the labels in the maps, the labels which are there on the border of the tiles(4*4) are not getting displayed properly. the labels can be seen after further zooming in or out(when they fall in the center of the tile and not in the border). in this image you can see the labels are being cut
On zooming further, the labels come properly, as expected
In the first image, the labels are cut.
But in the second image, we see on zooming further, the labels are shown as expected.
Please see the SLD.
SLD:
<?xml version="1.0" encoding="ISO-8859-1"?>
<StyledLayerDescriptor version="1.0.0"
xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd"
xmlns="http://www.opengis.net/sld"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<NamedLayer>
<Name>pxs_gna_mobile_site</Name>
<UserStyle>
<Name>Geo_Style_pxs_gna_mobile_site</Name>
<FeatureTypeStyle>
<Rule>
<Name>Geo_Rule_pxs_gna_mobile_site</Name>
<MaxScaleDenominator>350000.0</MaxScaleDenominator>
<PointSymbolizer>
<Graphic>
<ExternalGraphic>
<OnlineResource xlink:type="simple" xlink:href="http://server:port/geoserver/styles/MobileTower_green.png"/>
<Format>image/png</Format>
</ExternalGraphic>
<Size>40</Size>
</Graphic>
</PointSymbolizer>
<TextSymbolizer>
<Geometry>
<ogc:Function name="centroid">
<ogc:PropertyName>geom</ogc:PropertyName>
</ogc:Function>
</Geometry>
<Label>
<ogc:PropertyName>candidate_code</ogc:PropertyName>
</Label>
<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>
</Font>
<LabelPlacement>
<PointPlacement>
<AnchorPoint>
<AnchorPointX>0.5</AnchorPointX>
<AnchorPointY>0.5</AnchorPointY>
</AnchorPoint>
<Displacement>
<DisplacementX>5</DisplacementX>
<DisplacementY>5</DisplacementY>
</Displacement>
</PointPlacement>
</LabelPlacement>
<Halo>
<Radius>2</Radius>
<Fill>
<CssParameter name="fill">#FFFFFF</CssParameter>
</Fill>
</Halo>
<Fill>
<CssParameter name="fill">#000000</CssParameter>
</Fill>
<VendorOption name="spaceAround">-1</VendorOption>
<VendorOption name="partials">true</VendorOption>
<VendorOption name="group">yes</VendorOption>
<VendorOption name="labelAllGroup">true</VendorOption>
<VendorOption name="conflictResolution">false</VendorOption>
</TextSymbolizer>
</Rule>
<Rule>
<Name>Geo_Rule_pxs_gna_mobile_site</Name>
<MinScaleDenominator>350000.0</MinScaleDenominator>
<PointSymbolizer>
<Graphic>
<ExternalGraphic>
<OnlineResource xlink:type="simple" xlink:href="http://server:port/geoserver/styles/MobileTower_green.png"/>
<Format>image/png</Format>
</ExternalGraphic>
<Size>40</Size>
</Graphic>
</PointSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>