Hi, I'm having a problem with labels on my map with lines. basically, when I display this using ShapefileRenderer (although I believe this happened with streamingrenderer as well), the labels seem to be displayed in random locations. In addition, when I pan my map, the labels move. I'm supplying the sld in the hopes that someone has some thoughts on how I can solve this problem. BTW, I found the same issue in Udig, but not when using ArcMap, so I don't think it's a data problem.
Thanks, Tom <?xml version="1.0" encoding="UTF-8"?> <sld:UserStyle xmlns:sld="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml"> <sld:Name>Major Streets</sld:Name> <sld:Title>Major Streets</sld:Title> <sld:Abstract></sld:Abstract> <sld:FeatureTypeStyle> <sld:Name>Streets</sld:Name> <sld:Title>Streets</sld:Title> <sld:Abstract>abstract</sld:Abstract> <sld:FeatureTypeName>major_streets</sld:FeatureTypeName> <sld:SemanticTypeIdentifier> generic:geometry</sld:SemanticTypeIdentifier> <sld:Rule> <sld:Name>default</sld:Name> <sld:Title> </sld:Title> <sld:Abstract>Abstract</sld:Abstract> <sld:MinScaleDenominator>50000.0</sld:MinScaleDenominator> <sld:MaxScaleDenominator>250000.0</sld:MaxScaleDenominator> <sld:LineSymbolizer> <sld:Stroke> <sld:CssParameter name="stroke"> <ogc:Literal>#0000FF</ogc:Literal> </sld:CssParameter> <sld:CssParameter name="stroke-linecap"> <ogc:Literal>butt</ogc:Literal> </sld:CssParameter> <sld:CssParameter name="stroke-linejoin"> <ogc:Literal>miter</ogc:Literal> </sld:CssParameter> <sld:CssParameter name="stroke-opacity"> <ogc:Literal>0.6</ogc:Literal> </sld:CssParameter> <sld:CssParameter name="stroke-width"> <ogc:Literal>1.0</ogc:Literal> </sld:CssParameter> <sld:CssParameter name="stroke-dashoffset"> <ogc:Literal>0.0</ogc:Literal> </sld:CssParameter> </sld:Stroke> </sld:LineSymbolizer> <sld:TextSymbolizer> <Label> <ogc:PropertyName>STREET_NAM</ogc:PropertyName> </Label> <Font> <CssParameter name="font-family">Times New Roman</CssParameter> <CssParameter name="font-style">Normal</CssParameter> <CssParameter name="font-size">16</CssParameter> <CssParameter name="font-weight">bold</CssParameter> </Font> <Fill> <CssParameter name="fill">#000000</CssParameter> </Fill> <VendorOption name="group">yes</VendorOption> </sld:TextSymbolizer> </sld:Rule> </sld:FeatureTypeStyle> </sld:UserStyle> ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
