SLD and ExternalGraphic formats

Kralidis,Tom [Burlington] Tom.Kralidis at EC.GC.CA
Wed May 24 14:39:59 PDT 2006


 
Assefa,
 
I'm using latest CVS, so I'm guessing it should have the fix, but I get the behaviour as per below.
 
..Tom
 

	-----Original Message----- 
	From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca] 
	Sent: Wed 24-May-06 15:22 
	To: Kralidis,Tom [Burlington] 
	Cc: MAPSERVER-USERS at LISTS.UMN.EDU 
	Subject: Re: [UMN_MAPSERVER-USERS] SLD and ExternalGraphic formats
	
	

	Tom,
	
	  This was a fixed before the 4.8 release ((Bug 1430). Could you confirm
	that the server is running that version at least ?
	
	Later,
	
	Kralidis,Tom [Burlington] wrote:
	> 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
	>
	
	
	--
	----------------------------------------------------------------
	Assefa Yewondwossen
	Software Analyst
	
	Email: assefa at dmsolutions.ca
	http://www.dmsolutions.ca/
	
	Phone: (613) 565-5056 (ext 14)
	Fax:   (613) 565-0925
	----------------------------------------------------------------
	
	
	



More information about the MapServer-users mailing list