<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial><PRE><SPAN class=140350712-30082006>O<SPAN class=086300613-30082006>n a normal MapServer CGI URL, I would suggest simply trying to add '&amp;ctype=forest' to the end of your URL.  </SPAN></SPAN></PRE><PRE><SPAN class=140350712-30082006><SPAN class=086300613-30082006>You are trying to do something different.  You are trying to pass an expression to a WMS server.  I would guess that you can </SPAN></SPAN></PRE><PRE><SPAN class=140350712-30082006><SPAN class=086300613-30082006>accomplish the same effect by using aStyled Layer Descriptor (SLD).  Take a look at <A href="http://mapserver.gis.umn.edu/docs/howto/sldhowto">http://mapserver.gis.umn.edu/docs/howto/sldhowto</A></SPAN></SPAN></PRE><PRE><SPAN class=140350712-30082006><SPAN class=086300613-30082006>David. </SPAN></SPAN></PRE></FONT></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT 
  face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> UMN MapServer 
  Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] <B>On Behalf Of 
  </B>Léveillé, James<BR><B>Sent:</B> Wednesday, August 30, 2006 7:25 
  AM<BR><B>To:</B> MAPSERVER-USERS@LISTS.UMN.EDU<BR><B>Subject:</B> 
  [UMN_MAPSERVER-USERS] Variable Substitution<BR><BR></FONT></DIV>
  <DIV><SPAN class=140350712-30082006><FONT face=Verdana 
  size=2>Hi,</FONT></SPAN></DIV>
  <DIV><FONT face=Verdana><FONT size=2><FONT face=Verdana><FONT size=2><FONT 
  face=Verdana><FONT size=2><SPAN 
  class=140350712-30082006></SPAN></FONT></FONT></FONT></FONT></FONT></FONT>&nbsp;</DIV>
  <DIV><SPAN class=140350712-30082006><FONT face=Verdana size=2>On the MapServer 
  WebSite, there is an example on "Run-time Substitution" (<A 
  href="http://mapserver.gis.umn.edu/docs/howto/runsub/?searchterm=parameter">http://mapserver.gis.umn.edu/docs/howto/runsub/?searchterm=parameter</A>) 
  that looks like this :</FONT></SPAN></DIV><PRE>LAYER
  NAME 'covertypes'
  ...
  CLASSITEM 'type'
  CLASS # highlighted presentation
    EXPRESSION '%ctype%'
    ...
  END
  CLASS # default presentation
    ...
  END
END</PRE><PRE><FONT face=Verdana size=2><SPAN class=140350712-30082006><FONT face=Verdana size=2>I would like to know if there is a way to specify the value of my '<STRONG><FONT color=#0000ff>%ctype%</FONT></STRONG>' variable in a URL like this one :</FONT></SPAN></FONT></PRE><PRE><FONT face=Verdana size=2><SPAN class=140350712-30082006></SPAN></FONT><FONT face=Verdana size=2><SPAN class=140350712-30082006><A href="http://myserver/mapserv.exe?map=mymapfile.map&amp;Service=WMS&amp;Version=1.0.0&amp;Request=GetMap&amp;Layers=mylayer1,mylayer2&amp;SRS=epsg:xyz">http://myserver/mapserv.exe?map=mymapfile.map&amp;Service=WMS&amp;Version=1.0.0&amp;Request=GetMap&amp;Layers=mylayer1,mylayer2&amp;SRS=epsg:xyz</A></SPAN></FONT></PRE><PRE><FONT face=Verdana size=2><SPAN class=140350712-30082006>Thanks.</SPAN></FONT></PRE><PRE><FONT face=Verdana size=2><SPAN class=140350712-30082006>Regards</SPAN></PRE>
  <DIV><FONT face=Verdana><FONT size=2><FONT face=Verdana><FONT size=2><FONT 
  face=Verdana><FONT size=2><SPAN 
  class=140350712-30082006></SPAN></FONT></FONT></FONT></FONT></FONT></FONT>&nbsp;</DIV>
  <DIV><FONT face=Verdana><FONT size=2><FONT face=Verdana><FONT size=2><FONT 
  face=Verdana><FONT size=2><SPAN 
  class=140350712-30082006></SPAN></FONT></FONT></FONT></FONT></FONT></FONT>&nbsp;</DIV>
  <DIV><FONT face=Verdana><FONT size=2><FONT face=Verdana><FONT size=2><FONT 
  face=Verdana><FONT size=2><SPAN 
  class=140350712-30082006></SPAN></FONT></FONT></FONT></FONT></FONT></FONT>&nbsp;</DIV></FONT>
  <DIV align=left><FONT face=Verdana 
  size=2>__________________________________________</FONT></DIV>
  <DIV align=left><FONT face=Verdana size=2><STRONG>James 
  Léveillé</STRONG></FONT></DIV>
  <DIV align=left><FONT face=Verdana size=2><FONT size=1><FONT 
  face=Verdana>&nbsp;</DIV></FONT></FONT></FONT>
  <DIV align=left><FONT face=Verdana color=#0000a0 size=2><STRONG>Intélec 
  Géomatique</STRONG></FONT></DIV>
  <DIV align=left><FONT face=Verdana size=1>420, boul. Charest Est<BR>Bureau 
  400<BR>Québec (QC), Canada<BR>G1K 8M4</FONT></DIV>
  <DIV align=left><FONT face=Verdana size=1></FONT>&nbsp;</DIV>
  <DIV align=left><FONT face=Verdana color=#c0c0c0 size=1>Intélec Géomatique: 
  418.687.5000</FONT></DIV>
  <DIV align=left><FONT face=Verdana color=#c0c0c0 size=1>MTQ: 418.380.2005 
  (#227)</FONT></DIV>
  <DIV>&nbsp;</DIV></BLOCKQUOTE></BODY></HTML>