After reading the docs a bit more, I found that the tag Label must be used
with TextSymbolizer, so I've added that into my SLD. However, I am still
getting no points from this layer showing up on my map. I've included the
latest SLD below.. any help would be really appreciated!
Thanks,
<?xml version="1.0" encoding="UTF-8"?>
<sld:StyledLayerDescriptor xmlns="http://www.opengis.net/sld" xmlns:sld="
http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml
="http://www.opengis.net/gml" version="1.0.0">
<sld:NamedLayer>
<sld:Name>shield-text</sld:Name>
<sld:UserStyle>
<sld:Name>shield-text</sld:Name>
<sld:Title/>
<sld:FeatureTypeStyle>
<sld:Name>name</sld:Name>
<sld:Rule>
<sld:TextSymbolizer>
<sld:Label></sld:Label>
<sld:LabelPlacement>
<sld:PointPlacement>
<sld:AnchorPoint>
<sld:AnchorPointX>
<ogc:Literal>0.5</ogc:Literal>
</sld:AnchorPointX>
<sld:AnchorPointY>
<ogc:Literal>0</ogc:Literal>
</sld:AnchorPointY>
</sld:AnchorPoint>
<sld:Rotation>
<ogc:Literal>0</ogc:Literal>
</sld:Rotation>
</sld:PointPlacement>
</sld:LabelPlacement>
<sld:Graphic>
<sld:Mark>
<sld:WellKnownName>triangle</sld:WellKnownName>
<sld:Fill>
<sld:CssParameter name="fill">#0000FF</sld:CssParameter>
</sld:Fill>
</sld:Mark>
<sld:Size>20</sld:Size>
</sld:Graphic>
</sld:TextSymbolizer>
</sld:Rule>
</sld:FeatureTypeStyle>
</sld:UserStyle>
</sld:NamedLayer>
</sld:StyledLayerDescriptor>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users