Hi,
I've got a WMS layer where I'm using an external SLD that I reference via the
'SLD' parameter. Within the SLD I have both a PointSymbolizer and a
TextSymbolizer defined. If I use a property name as the value of the
TextSymbolizer's label nothing is displayed, modifying the SLD to use a static
string works fine.
Strangely if I create a style in GeoServer using the same FeatureTypeStyle
definition and set that as the default style for the layer it renders correctly
in the Layer Preview. Can anybody explain why the label is not displaying when
using the external SLD?
I'm using GeoServer 2.1.1 and the FeatureTypeStyle from the external SLD is
shown below:
<FeatureTypeStyle>
<Rule>
<Title>Red square</Title>
<PointSymbolizer>
<Graphic>
<Mark>
<WellKnownName>square</WellKnownName>
<Fill>
<CssParameter name="fill">#FF0000</CssParameter>
</Fill>
</Mark>
<Size>6</Size>
</Graphic>
</PointSymbolizer>
<TextSymbolizer>
<Label>
<ogc:PropertyName>Type_CODE</ogc:PropertyName>
</Label>
<Fill>
<CssParameter name="fill">#000000</CssParameter>
</Fill>
</TextSymbolizer>
</Rule>
</FeatureTypeStyle>
Cheers
Adam
------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric
Ries, the creator of the Lean Startup Methodology on "Lean Startup
Secrets Revealed." This video shows you how to validate your ideas,
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users