<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE></TITLE>

<META content="MSHTML 6.00.2800.1458" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV><SPAN class=406511216-18082004><FONT face=Arial color=#0000ff size=2>I have 
had much success changing mapfiles on the fly with %variables. Read up on them 
in the documentation.</FONT></SPAN></DIV>
<DIV><SPAN class=406511216-18082004><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=406511216-18082004><FONT face=Arial color=#0000ff 
size=2>Zamil</FONT></SPAN></DIV>
<BLOCKQUOTE>
  <DIV class=OutlookMessageHeader 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>Tony 
  Jolibois<BR><B>Sent:</B> Wednesday, August 18, 2004 10:08 AM<BR><B>To:</B> 
  MAPSERVER-USERS@LISTS.UMN.EDU<BR><B>Subject:</B> [UMN_MAPSERVER-USERS] mapfile 
  depends on the user action<BR><BR></FONT></DIV>&nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Hi all,<BR><BR>Is there a simple way to 
  modify the mapfile in fonction of the changes of the user interface 
  ?<BR>Example, here is a raster layer :<BR><BR><SMALL><FONT 
  face="Courier New, Courier, monospace">LAYER<BR>&nbsp; NAME 
  temperature<BR>&nbsp; TYPE raster<BR>&nbsp; STATUS OFF<BR>&nbsp; DATA '<A 
  class=moz-txt-link-freetext 
  href="http://opendap-dev.cls.fr:8480/thredds/dodsC/mercator_psy2v1_mersea_grid1o8_nat_best_estimate?temperature">http://opendap-dev.cls.fr:8480/thredds/dodsC/mercator_psy2v1_mersea_grid1o8_nat_best_estimate?temperature</A><B>[0]</B>[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nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  <BR>CLASS<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME "(&lt; 
  0)"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EXPRESSION ([pixel] &lt; 
  0)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 0&nbsp;&nbsp;&nbsp; 
  0&nbsp; 131<BR>END<BR>etc...<BR><BR></FONT></SMALL>The number in bold is the 
  time step of an aggregation. I want to allow the user to select the date of 
  the temperature field, so I need to change the mapfile.<BR><BR>If you have 
  suggestions, it would be great !<BR><BR>Tony<BR></BLOCKQUOTE></BODY></HTML>