On Thu, Mar 3, 2011 at 8:28 AM, johnrobot <[email protected]> wrote:
> > Hi David > Thanks for your reply. I changed the SLD to > > <?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">#FF0000</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>--> > <VendorOption name="conflictResolution">false</VendorOption> > </TextSymbolizer> > </Rule> > > </FeatureTypeStyle> > </UserStyle> > </NamedLayer> > </StyledLayerDescriptor> > > but it still doesn´t render all of the labels. I tried with and without the > spaceAround option, too. What am I missing? > Labels that do cross the image borders (partially in, partially out) are not going to be drawn no matter what. We have no option to have them drawn regardless, but if you're interested in coding one I can show you have to add it. The other issue you might be facing is "goodness of fit", if you're labelling polygons the label has to fit at least by 50% of its size inside the polygon, otherwise it won't be drawn. The goodness of fit is tweakable though, see the page David pointed you at. I'm however wondering why you want to get there... all you'll get is an unreadable map with various overlapped labels? There is a reason why you don't get that by default, so I'm wondering why you're trying to get it displayed that way anyways... Cheers Andrea -- ------------------------------------------------------- Ing. Andrea Aime GeoSolutions S.A.S. Tech lead Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 962313 mob: +39 333 8128928 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.youtube.com/user/GeoSolutionsIT http://www.linkedin.com/in/andreaaime http://twitter.com/geowolf -------------------------------------------------------
------------------------------------------------------------------------------ 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
