Title: Message
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:[EMAIL PROTECTED] On Behalf Of Léveillé, James
Sent: Wednesday, August 30, 2006 7:25 AM
To: [email protected]
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)
 

Reply via email to