Ticket #4174 (new defect)

Opened 16 months ago

Last modified 16 months ago

SLD WellKnownName Converted to Uppercase

Reported by: geographika Owned by: msogcbugs
Priority: normal Milestone:
Component: WMS Server Version: 6.0
Severity: normal Keywords: sld, wellknownname, ogc
Cc:

Description

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?

Change History

Changed 16 months ago by sdlime

  • owner changed from sdlime to msogcbugs
  • component changed from MapServer C Library to WMS Server
Note: See TracTickets for help on using tickets.