<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi, <br>
    I don't use the time dimension, what I use is run-time substitution
    <a class="moz-txt-link-freetext" href="http://mapserver.org/cgi/runsub.html">http://mapserver.org/cgi/runsub.html</a><br>
    I have 6 variables. You have to put the validation pattern inside
    the metadata tag and a validation tag with the pattern of your
    variables.<br>
    <br>
    With this you can invoke the params in the url. If you put them the
    query will be with the values in the url, if not, then the query
    will be with the default values defined in the metadata tag.<br>
    <br>
    Hope this help you,<br>
    Helen<br>
    <br>
    <br>
    LAYER<br>
    &nbsp;&nbsp;&nbsp; NAME 'name'<br>
    &nbsp;&nbsp;&nbsp; HEADER "templates/getfeatureinfo_header.html" # header html
    template<br>
    &nbsp;&nbsp;&nbsp; TEMPLATE "templates/getfeatureinfo_content.html" # content html
    template<br>
    &nbsp;&nbsp;&nbsp; FOOTER "templates/getfeatureinfo_footer.html" # footer html
    template&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>
    &nbsp;&nbsp;&nbsp; METADATA&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'ows_title' 'title'<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'wms_feature_info_mime_type' "text/html"<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "gml_include_items" "all"&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "wms_include_items"&nbsp;&nbsp; "all"&nbsp;&nbsp;&nbsp; <br>
    <br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'aini_validation_pattern'&nbsp;&nbsp;&nbsp; '^[0-9]{1,8}$'<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'afi_validation_pattern'&nbsp;&nbsp;&nbsp; '^[0-9]{1,8}$'<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'mini_validation_pattern'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '^[0-9]{1,8}$'<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'mfi_validation_pattern'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '^[0-9]{1,8}$'<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'dini_validation_pattern'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '^[0-9]{1,8}$'<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'dfi_validation_pattern'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '^[0-9]{1,8}$'<br>
    <br>
    <br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'default_aini'&nbsp;&nbsp;&nbsp; '2012'<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'default_afi'&nbsp;&nbsp;&nbsp; '2012'<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'default_mini'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '4'<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'default_mfi'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '4'<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'default_dini'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '24'<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'default_dfi'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '25'<br>
    <br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>
    &nbsp;&nbsp;&nbsp; END<br>
    &nbsp;&nbsp;&nbsp; VALIDATION<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'aini'&nbsp;&nbsp;&nbsp; '^[0-9]{1,8}$'<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'afi'&nbsp;&nbsp;&nbsp; '^[0-9]{1,8}$'<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'mini'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '^[0-9]{1,8}$'<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'mfi'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '^[0-9]{1,8}$'<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'dini'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '^[0-9]{1,8}$'<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 'dfi'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '^[0-9]{1,8}$'<br>
    <br>
    &nbsp;&nbsp;&nbsp; END<br>
    &nbsp;&nbsp;&nbsp; STATUS OFF<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>
    &nbsp;&nbsp;&nbsp; PROJECTION<br>
    &nbsp;&nbsp; "init=epsg:4326"<br>
    &nbsp;&nbsp;&nbsp; END<br>
    <br>
    &nbsp; CONNECTIONTYPE postgis<br>
    &nbsp; CONNECTION "user=postgres password=pp dbname=mm host=host" <br>
    &nbsp; DATA "the_geom FROM (SELECT oid,geometry_columns<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; from table<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; where
    time&gt;='%aini%-%mini%-%dini% 00:00:00'<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; and
    time&lt;'%afi%-%mfi%-%dfi% 00:00:00'<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ) <br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AS r USING UNIQUE oid USING SRID=4326" <br>
    <br>
    <br>
    ....<br>
    <br>
    El 10/05/12 13:24, abhishek bansal escribi&oacute;:
    <blockquote
cite="mid:CAEdTMPxrK+QXAkFukmoWgiC+4CSwsPp4sn8kOPZnKotL3uaABA@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      Hello All<br>
      <div class="content-body markdown-body markdown-format">
        <p>I am working on a project that require time as a dimension of
          data. I have gone through all documentation but I am not able
          to understand that how do I upload time data in server .map
          file. I have created simple map files and my server is
          working. What i need is same layer on different time should
          different dataset.</p>
        <p>plz help !!</p>
      </div>
      <br clear="all">
      <br>
      -- <br>
      Thanks &amp; Regards,<br>
      Abhishek Bansal<br>
      <br>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
mapserver-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>