I get duplicated labels on lines, I would like just to get the default one label for one line. Why do I get more than one label for a line when default is supposed to be just one?
The doc says: The repeat option determines how often GeoServer labels a line. Normally GeoServer would label each line only once, regardless of their length. Specify a positive value to make it draw the label every repeat pixels. <VendorOption name="repeat">100</VendorOption> But I am not using the repeat option. Using GeoServer 2.4.1 My SLD: <?xml version="1.0" encoding="utf-8"?> <StyledLayerDescriptor version="1.0.0" 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" xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd"> <NamedLayer> <Name>Arwos drikkevand maalsaetning</Name> <UserStyle> <Title>1 px black line</Title> <Abstract>Styles polyline with label</Abstract> <FeatureTypeStyle> <Rule> <MaxScaleDenominator>2000</MaxScaleDenominator> <LineSymbolizer> <Stroke> <CssParameter name="stroke">#000000</CssParameter> </Stroke> </LineSymbolizer> <TextSymbolizer> <Label> <ogc:PropertyName>LENGDE</ogc:PropertyName> </Label> <LabelPlacement> <LinePlacement> <PerpendicularOffset> 10 </PerpendicularOffset> </LinePlacement> </LabelPlacement> <Fill> <CssParameter name="fill">#000000</CssParameter> </Fill> </TextSymbolizer> </Rule> </FeatureTypeStyle> </UserStyle> </NamedLayer> </StyledLayerDescriptor> [cid:image002.png@01CD9A63.2AA74EE0] Venlig hilsen / Best Regards Jakob Lanstorp IT-konsulent GIS & IT COWI A/S Visionsvej 53 9000 Alborg C Denmark Direct: (+45) 99 36 79 50 Mobile: (+45) 40 20 75 29 Mail: j...@cowi.dk<mailto:j...@cowi.dk> www.cowi.dk/gis<http://www.cowi.dk/gis> [cid:image001.jpg@01CD9A62.4C32E9D0]
<<inline: image001.jpg>>
<<inline: image002.png>>
------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users