SLD and ExternalGraphic formats

Kralidis,Tom [Burlington] Tom.Kralidis at EC.GC.CA
Wed May 24 11:42:16 PDT 2006


Hi,

We're using an SLD to custom symbolize some point data with an
ExternalGraphic ref, and resulting behaviour is as expected, until we
try to symbolize with ExternalGraphic.

Snippet below:

<ExternalGraphic>
 <OnlineResource xlink:type="simple"
xlink:href="http://eman-rese.ca/logos/gif/EMAN_colour_black_text.gif"/>
 <Format>GIF</Format>
</ExternalGraphic>

...however, when I change the Format element to "image/gif", the OGC:WMS
server (powered by MapServer) does not symbolize based on the
ExternalGraphic def.

When looking at latest CVS, mapogcsld.c, line 2146, it looks like they
take OGC:WMS 1.0.0 and 1.1.+ style of format defs (i.e. "GIF", "PNG",
"image/gif", "image/png"), but this is not evident in the GetMap output.

Examples:

Working SLD:

http://devgeo.cciw.ca/ms_tmp/pw7.sld

Working GetMap / SLD request:

http://www.eman-rese.ca/cgi-bin/mapserver/naturewatch.asp?SERVICE=WMS&VE
RSION=1.1.1&REQUEST=GetMap&SRS=EPSG%3A4326&BBOX=-125.2242339821858,20.95
844971963387,-36.22423397781418,76.58344972236614&WIDTH=560&HEIGHT=350&L
AYERS=plantwatch&STYLES=&FORMAT=image%2Fpng&BGCOLOR=0xFFFFFF&TRANSPARENT
=FALSE&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&sld=http://devgeo.cci
w.ca/ms_tmp/pw7.sld

Non-Working SLD (only difference is changing <Format>GIF</Format> to
<Format>image/gif</Format>

http://devgeo.cciw.ca/ms_tmp/pw8.sld

Non-Working GetMap / SLD request:

http://www.eman-rese.ca/cgi-bin/mapserver/naturewatch.asp?SERVICE=WMS&VE
RSION=1.1.1&REQUEST=GetMap&SRS=EPSG%3A4326&BBOX=-125.2242339821858,20.95
844971963387,-36.22423397781418,76.58344972236614&WIDTH=560&HEIGHT=350&L
AYERS=plantwatch&STYLES=&FORMAT=image%2Fpng&BGCOLOR=0xFFFFFF&TRANSPARENT
=FALSE&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&sld=http://devgeo.cci
w.ca/ms_tmp/pw8.sld

..Tom



More information about the MapServer-users mailing list