You can use: <VendorOption name="conflictResolution">false</VendorOption>
to have geoserver always draw labels, even if they will overlap. This option and others you can use to tweak the label positioning are documented on the manual at: http://docs.geoserver.org/stable/en/user/styling/sld-reference/labeling.html#conflictresolution Hope this helps. -- David Winslow OpenGeo - http://opengeo.org/ On Wed, Mar 2, 2011 at 4:43 AM, johnrobot <[email protected]> wrote: > > Hi > I am having trouble adding a label for each feature (residing in a > SHP-file). My SLD: > > <?xml version="1.0" encoding="ISO-8859-1"?> > <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>Title</Name> > <UserStyle> > <Title>Title</Title> > <FeatureTypeStyle> > > <Rule> > <Title>Polygon</Title> > <PolygonSymbolizer> > <Fill> > <CssParameter name="fill">#AAAAAA</CssParameter> > </Fill> > <Stroke> > <CssParameter name="stroke">#000000</CssParameter> > <CssParameter name="stroke-width">1</CssParameter> > </Stroke> > </PolygonSymbolizer> > <TextSymbolizer> > <Label> > <ogc:PropertyName>Name</ogc:PropertyName> > </Label> > <VendorOption name="spaceAround">-1</VendorOption> > </TextSymbolizer> > </Rule> > > </FeatureTypeStyle> > </UserStyle> > </NamedLayer> > </StyledLayerDescriptor> > > > I would expect all features to have a label, but they only seem to appear > when I zoom in quite a lot. Any suggestions on what to change here? > GeoServer 2.0.2, Win 7 32 bit. > > Regards, > > Magnus > -- > View this message in context: > http://old.nabble.com/Fail-to-add-label-for-all-features-tp31047835p31047835.html > Sent from the GeoServer - User mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > Free Software Download: Index, Search & Analyze Logs and other IT data in > Real-Time with Splunk. Collect, index and harness all the fast moving IT > data > generated by your applications, servers and devices whether physical, > virtual > or in the cloud. Deliver compliance at lower cost and gain new business > insights. http://p.sf.net/sfu/splunk-dev2dev > _______________________________________________ > Geoserver-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geoserver-users >
------------------------------------------------------------------------------ Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
