Hi list!
I've got an error:
org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was
found starting with element 'LabelPlacement'. One of '{"
http://www.opengis.net/sld":Graphic, "http://www.opengis.net/sld":Priority,
"http://www.opengis.net/sld":VendorOption}' is expected.
when trying to validate the following style:
------------------------
<?xml version="1.0" encoding="UTF-8"?>
<StyledLayerDescriptor xmlns:xlink='http://www.w3.org/1999/xlink' xmlns:gml=
'http://www.opengis.net/gml' xmlns:ogc='http://www.opengis.net/ogc'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' version='1.0.0'
xsi:schemaLocation='http://www.opengis.net/sld StyledLayerDescriptor.xsd'
xmlns='http://www.opengis.net/sld' >
<NamedLayer>
<Name>cities</Name>
<UserStyle>
<FeatureTypeStyle>
<Rule>
<Name>labels</Name>
<Title>city labels</Title>
<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>adm_sts</ogc:PropertyName>
<ogc:Literal>0</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
<TextSymbolizer>
<Label>
<ogc:PropertyName>name</ogc:PropertyName>
</Label>
<Font>
<CssParameter name="font-family">Arial</CssParameter>
<CssParameter name="font-size">8</CssParameter>
<CssParameter name="font-style">normal</CssParameter>
<CssParameter name="font-weight">normal</CssParameter>
</Font>
<Halo>
<Radius>
<ogc:Literal>1</ogc:Literal>
</Radius>
<Fill>
<CssParameter name="fill" >#ffffff</CssParameter>
</Fill>
</Halo>
<Fill>
<CssParameter name="fill" >#000000</CssParameter>
</Fill>
<LabelPlacement>
<PointPlacement>
<AnchorPoint>
<AnchorPointX>-0.05</AnchorPointX>
<AnchorPointY>-0.05</AnchorPointY>
</AnchorPoint>
</PointPlacement>
</LabelPlacement>
<Priority>
<ogc:PropertyName>comment</ogc:PropertyName>
</Priority>
</TextSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
----------------------------------
What's the problem with LabelPlacement tag?
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users