GetLegendGraphic and sld

Kralidis,Tom [Burlington] Tom.Kralidis at EC.GC.CA
Mon Mar 6 08:49:23 EST 2006


Worked!  Forgot about this one.  Thx
 

	-----Original Message----- 
	From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca] 
	Sent: Mon 06-Mar-06 08:44 
	To: Kralidis,Tom [Burlington] 
	Cc: MAPSERVER-USERS at LISTS.UMN.EDU 
	Subject: Re: [UMN_MAPSERVER-USERS] GetLegendGraphic and sld
	
	

	Tom,
	
	  If you set the name parameter inside the rule, It will be used to set
	the class name on the layer. The class name is the one that is used as
	text in the legend. (Bug 1451 is realted to this).
	
	  Later,
	
	
	Kralidis,Tom [Burlington] wrote:
	> 
	> Hi,
	> 
	> Does MapServer's OGC:WMS GetLegendGraphic support changing of legend text in addition to the actual graphic mark?  We're able to do the latter via SLD, but we can't seem to change the legend text.
	> 
	> We're using latest CVS.
	> 
	> Test URL:
	> 
	> http://devgeo.cciw.ca/cgi-bin/mapserv/hydromet?version=1.1.1&service=WMS&request=GetLegendGraphic&layer=hydromet_latest_water_levels&format=image/jpeg&sld=http://devgeo.cciw.ca/ms_tmp/kyw_sld.xml
	> 
	> Under the hood, the data from the OGC:WMS is a point layer, with the following CLASS block:
	> 
	>   CLASS
	>    NAME "Water Levels"
	>    SYMBOL 'circle'
	>    SIZE 3
	>    COLOR 0 0 255
	>   END
	> 
	> ...so I'm not sure whether something has to be enabled from the server end to enable the SLD to specify titles, or if the SLD is off.
	> 
	> Please advise.
	> 
	> Thanks
	> 
	> ..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