Hi,
I always have problems with xml, sld and understanding the context, syntax and
rules which one has to know in order to make a valid sld file.
Does anyone have any "easy to understand" literature or tutorials regarding
sld,
namespaces and when one should use <sld:></sld>, <ogc:></ogc>, <css:></css>,
<xsi:></xsi> etc etc...
I have read the geoserver docu regarding styling and sld“s but I still have
limited understanding about the prefixes/namespaces etc. Or if it is so easy,
maybe someone coold write a few lines explaining the rules to me....
<FeatureTypeStyle>
<Rule>
<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>grenze</ogc:PropertyName>
<ogc:Literal>Landkreis/Stadt</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
<sld:MinScaleDenominator>300000</sld:MinScaleDenominator>
<sld:MaxScaleDenominator>9000000</sld:MaxScaleDenominator>
<TextSymbolizer>
<Label>
<ogc:PropertyName>GNAME</ogc:PropertyName>
</Label>
<Font>
<CssParameter name="font-family">Arial</CssParameter>
<CssParameter name="font-size">12</CssParameter>
<CssParameter name="font-style">normal</CssParameter>
<CssParameter name="font-weight">bold</CssParameter>
</Font>
<LabelPlacement>
<PointPlacement>
<AnchorPoint>
<AnchorPointX>0.5</AnchorPointX>
<AnchorPointY>0.0</AnchorPointY>
</AnchorPoint>
<Displacement>
<DisplacementX>0</DisplacementX>
<DisplacementY>25</DisplacementY>
</Displacement>
</PointPlacement>
</LabelPlacement>
<Fill>
<CssParameter name="fill">#990099</CssParameter>
</Fill>
</TextSymbolizer>
</Rule>
</FeatureTypeStyle>
I wrote this and I receive an error that "The prefix "sld" for element
"sld:MinScaleDenominator" is not bound."...????
Thanks,
Robert Buckley
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users