Variable Substitution

Fawcett, David David.Fawcett at STATE.MN.US
Wed Aug 30 09:13:38 EDT 2006


On a normal MapServer CGI URL, I would suggest simply trying to add '&ctype=forest' to the end of your URL.  
You are trying to do something different.  You are trying to pass an expression to a WMS server.  I would guess that you can 
accomplish the same effect by using aStyled Layer Descriptor (SLD).  Take a look at http://mapserver.gis.umn.edu/docs/howto/sldhowto
David. 

	-----Original Message-----
	From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Léveillé, James
	Sent: Wednesday, August 30, 2006 7:25 AM
	To: MAPSERVER-USERS at LISTS.UMN.EDU
	Subject: [UMN_MAPSERVER-USERS] Variable Substitution
	
	
	Hi,
	 
	On the MapServer WebSite, there is an example on "Run-time Substitution" (http://mapserver.gis.umn.edu/docs/howto/runsub/?searchterm=parameter) that looks like this :
	LAYER
	  NAME 'covertypes'
	  ...
	  CLASSITEM 'type'
	  CLASS # highlighted presentation
	    EXPRESSION '%ctype%'
	    ...
	  END
	  CLASS # default presentation
	    ...
	  END
	END
	I would like to know if there is a way to specify the value of my '%ctype%' variable in a URL like this one :
	http://myserver/mapserv.exe?map=mymapfile.map&Service=WMS&Version=1.0.0&Request=GetMap&Layers=mylayer1,mylayer2&SRS=epsg:xyz
	Thanks.
	Regards
	 
	 
	 
	__________________________________________
	James Léveillé
	 
	Intélec Géomatique
	420, boul. Charest Est
	Bureau 400
	Québec (QC), Canada
	G1K 8M4
	 
	Intélec Géomatique: 418.687.5000
	MTQ: 418.380.2005 (#227)
	 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060830/f04d9bd5/attachment.html


More information about the mapserver-users mailing list