I'm having problems getting labels to render with all of my new shapefiles.
The original demo maps seem to work ok.
Here is my SLD (originally generated using "Create new SLD" under
FeatureType Editor)
<?xml version="1.0" encoding="UTF-8"?>
<StyledLayerDescriptor version="1.0.0"
xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd"
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">
<NamedLayer>
<Name>co_cnty</Name>
<UserStyle>
<Name>co_cnty_style</Name>
<Title>geoserver style</Title>
<Abstract>Generated by GeoServer</Abstract>
<FeatureTypeStyle>
<Rule>
<PolygonSymbolizer>
<Fill>
<CssParameter name="fill">#FFFFFF</CssParameter>
<CssParameter name="fill-opacity">0</CssParameter>
</Fill>
<Stroke>
<CssParameter name="stroke">#001100</CssParameter>
<CssParameter name="stroke-opacity">1</CssParameter>
</Stroke>
</PolygonSymbolizer>
<TextSymbolizer>
<Label>
<ogc:PropertyName>COUNTY</ogc:PropertyName>
</Label>
<CssParameter name="font-family">Times New
Roman</CssParameter>
<CssParameter name="font-style">Normal</CssParameter>
<CssParameter name="font-size">6</CssParameter>
<Fill>
<CssParameter name="fill">#ff0000</CssParameter>
<CssParameter name="fill-opacity">1</CssParameter>
</Fill>
</TextSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
I'm only getting 4 county names showing up. I'm pretty sure this shapefile
is ok as the labels render just find when using mapserver (5.x) using COUNTY
as the LABELITEM. I get the same result with another shapefile (Different
PropertyName).
I've tried adding these two entries under the TextSymbolizer with no better
results
<VendorOption name="spaceAround">1</VendorOption> (Also tried -1)
<VendorOption name="group">false</VendorOption>
I'm using Ubuntu 8.10, tomcat was installed using apt-get. Geoserver was
installed from a WAR file. Geoserver Version is 1.7.4, java version is 1.5.0
(Also tried openJDK-6).
I'm just not sure if it is a problem with Ubuntu, Tomcat or Geoserver. Oh,
the other demo maps seem to work just fine.
Thanks
--
View this message in context: http://www.nabble.com/Labels-partially-being-rendered-tp23710474p23710474.html
Sent from the GeoServer - User mailing list archive at Nabble.com.