Tag Info

New answers tagged


I often have the same problem and I mostly solve it with following vendor options <VendorOption name="goodnessOfFit">0.1</VendorOption> <VendorOption name="conflictResolution">false</VendorOption> <VendorOption name="spaceAround">-1</VendorOption> I hope it helps.


By default GeoServer tries very hard to not overlap your labels (as this generally what the user wants). You can change this behaviour by setting the vendor option conflictResoloution to false. <VendorOption name="conflictResolution">false</VendorOption>


This is probably an artifact due to tiling. The layer preview map defaults to a single tile, but I'm guessing your openlayers map uses tiling. Geoserver insists on labeling every tile. GeoServer doesn't know that each request is for a tile in a larger map, so it treats a tile as a complete map and dutifully applies a label to it. So basically, if a road ...


Perhaps you meant to use the NamedLayer element, rather than UserLayer. e.g. <?xml version="1.0" encoding="UTF-8"?> <StyledLayerDescriptor 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" ...

Top 50 recent answers are included