I've used SLD to style road features in Geoserver. As roads include multiple segments the 'group' attribute has been used to control label repeat of roads. The problem is some labels can't be placed on the centerline of roads. In the image below, label 2 is my desire and label 1 is the problematic one.
I applied the 'PerpendicularOffset' to 0 (default) which should do the job, but no success has been made.
<se:TextSymbolizer>
<se:Label>
<ogc:PropertyName>name</ogc:PropertyName>
</se:Label>
<se:LabelPlacement>
<se:LinePlacement>
<se:PerpendicularOffset> 0 </se:PerpendicularOffset>
</se:LinePlacement>
</se:LabelPlacement>
<se:Fill>
<se:SvgParameter name="fill">#523735</se:SvgParameter>
</se:Fill>
<se:VendorOption name="followLine">true</se:VendorOption>
<se:VendorOption name="maxAngleDelta">90</se:VendorOption>
<se:VendorOption name="maxDisplacement">200</se:VendorOption>
<se:VendorOption name="repeat">200</se:VendorOption>
<se:VendorOption name="group">yes</se:VendorOption>
</se:TextSymbolizer>