On Wed, Nov 10, 2010 at 9:04 AM, Dragan Podvezanec <dragan.podveza...@gmail.com> wrote: > > Hi all, > > I have some problems with text symbolizer: Here is sld > > <sld:Rule> > <sld:Name>NUMBER</sld:Name> > <sld:Title>NUMBER</sld:Title> > <sld:Abstract>Abstract</sld:Abstract> > > <sld:MaxScaleDenominator>5000.0</sld:MaxScaleDenominator> > <sld:PointSymbolizer> > <sld:Graphic> > <sld:Mark> > > <sld:WellKnownName>square</sld:WellKnownName> > </sld:Mark> > <sld:Opacity> > <ogc:Literal>1.0</ogc:Literal> > </sld:Opacity> > <sld:Size> > <ogc:Literal>6.0</ogc:Literal> > </sld:Size> > <sld:Rotation> > <ogc:Literal>0.0</ogc:Literal> > </sld:Rotation> > </sld:Graphic> > </sld:PointSymbolizer> > <sld:TextSymbolizer > uom="http://www.opengeospatial.org/se/units/metre"> > <sld:Label> > <ogc:PropertyName>NUMBER</ogc:PropertyName> > </sld:Label> > <sld:Font> > <sld:CssParameter name="font-family"> > <ogc:Literal>Arial</ogc:Literal> > </sld:CssParameter> > <sld:CssParameter name="font-size"> > <ogc:Literal>3.0</ogc:Literal> > </sld:CssParameter> > <sld:CssParameter name="font-style"> > <ogc:Literal>bold</ogc:Literal> > </sld:CssParameter> > <sld:CssParameter name="font-weight"> > <ogc:Literal>normal</ogc:Literal> > </sld:CssParameter> > </sld:Font> > <sld:LabelPlacement> > <sld:PointPlacement> > <sld:AnchorPoint> > <sld:AnchorPointX> > <ogc:Literal>0.0</ogc:Literal> > </sld:AnchorPointX> > <sld:AnchorPointY> > <ogc:Literal>0.0</ogc:Literal> > </sld:AnchorPointY> > </sld:AnchorPoint> > <sld:Displacement> > <sld:DisplacementX> > <ogc:Literal>0</ogc:Literal> > </sld:DisplacementX> > <sld:DisplacementY> > <ogc:Literal>0</ogc:Literal> > </sld:DisplacementY> > </sld:Displacement> > <sld:Rotation> > <ogc:Literal>0.0</ogc:Literal> > </sld:Rotation> > </sld:PointPlacement> > </sld:LabelPlacement> > <sld:Fill> > <sld:CssParameter name="fill"> > <ogc:Literal>#000000</ogc:Literal> > </sld:CssParameter> > <sld:CssParameter name="fill-opacity"> > <ogc:Literal>1.0</ogc:Literal> > </sld:CssParameter> > </sld:Fill> > <VendorOption name="spaceAround">-1</VendorOption> > <VendorOption name="conflictResolution">false</VendorOption> > </sld:TextSymbolizer> > </sld:Rule> > > > In this case: http://img26.imageshack.us/img26/8154/sldparcel2.png > > There are some labels missing, although I defined conflictResolution to > false. > > Here is another case of similar issue: > > http://img32.imageshack.us/img32/2072/sldparcel.png > > In this example, parcel around 522 is 521, but it's label is never shown, > also, parcel above it without label should display 524 > > Are there any other options I should use in SLD ?
Look for "goodness of fit". The label is not displayed because it would fall mostly outside of the polygon. By default it has to be at least 50% inside of it to be displayed Cheers Andrea ----------------------------------------------------- Ing. Andrea Aime Senior Software Engineer GeoSolutions S.A.S. Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584962313 fax: +39 0584962313 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.linkedin.com/in/andreaaime http://twitter.com/geowolf ----------------------------------------------------- ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users