I am creating an SLD in QGIS to be used in GeoServer. I set up the style with color, thickness, etc in QGIS and then saved it out to an SLD. QGIS doesn't preserve the label rules so I borrowed some from the SLD cookbook. Everything except the following seems to be working:

<StyledLayerDescriptor version="1.0.0" xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd">
        <Name>Optimized and styled label</Name>
            <Title>SLD Cook Book: Optimized and styled label</Title>
                            <se:SvgParameter name="stroke">white</se:SvgParameter>
                            <se:SvgParameter name="stroke-width">3</se:SvgParameter>
                            <se:SvgParameter name="stroke-linejoin">bevel</se:SvgParameter>
                            <se:SvgParameter name="stroke-linecap">square</se:SvgParameter>
                                <CssParameter name="font-family">Arial</CssParameter>
                                <CssParameter name="font-size">6</CssParameter>
                                <CssParameter name="font-style">normal</CssParameter>
                                <CssParameter name="font-weight">bold</CssParameter>
                                <CssParameter name="fill">#383534</CssParameter>
                            <VendorOption name="followLine">true</VendorOption>
                            <VendorOption name="maxAngleDelta">30</VendorOption>
                            <VendorOption name="maxDisplacement">50</VendorOption>
                            <VendorOption name="group">yes</VendorOption>
                            <VendorOption name="spaceAround">30</VendorOption>
                            <VendorOption name="goodnessOfFit">.05</VendorOption>

This comes out like so: enter image description here

But I want it to look like this: enter image description here

Are the vendor options not configured correctly?

I checked out GeoServer's site on curved lines and everything seems to be in order.

  • 1
    VendorOption is something supported by a vendor (provider of software), so it's quite probable that if GeoServer is the vendor in this case, that the 'option' won't be supported in QGIS and vice versa – nmtoken Jun 2 '17 at 6:37
  • @nmtoken The other vendor options seem to be working. – geoJshaun Jun 2 '17 at 15:15
  • Yes, but the same comment applies, vendor options are not part of the standard so may not work; just because some work doesn't mean that all will do, or will do in the same way... – nmtoken Jun 5 '17 at 13:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.