Ticket #4174 (new defect)
SLD WellKnownName Converted to Uppercase
|Reported by:||geographika||Owned by:||msogcbugs|
|Severity:||normal||Keywords:||sld, wellknownname, ogc|
The following CLASS in a MAP file:
SYMBOL 'circle' SIZE 12 COLOR 255 0 0 #170 170 0 OUTLINECOLOR 220 220 220 END
is converted to the SLD snippet below when using MapScript? and the layer.generateSLD() command.
<Rule> <PointSymbolizer> <Graphic> <Mark> <WellKnownName>CIRCLE</WellKnownName> <Fill> <CssParameter name="fill">#ff0000</CssParameter> </Fill> </Mark> <Size>12</Size> </Graphic> </PointSymbolizer> </Rule>
The WellKnownName? in uppercase means that it cannot be used by OpenLayers? which uses a case-sensitive look up for SLD symbols. I've tried looking through the SLD spec to see if this is case-sensitive, but not been able to find a definitive answer. However lowercase is used for this parameter in every SLD example I've seen on the web.
The code to create the WellKnownName? tag is in http://trac.osgeo.org/mapserver/browser/trunk/mapserver/mapogcsld.c (line 1731 onward) however it could be related to the MapScript? library?