Okay.!!<br><br>Thank You very much for your help.<br><br><div class="gmail_quote">On Fri, May 11, 2012 at 12:41 PM, Helen San Segundo Navazo <span dir="ltr">&lt;<a href="mailto:hsansegundo@meteo.cat" target="_blank">hsansegundo@meteo.cat</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    Hi,<br>
    <ul>
      <li>for the first point, in my last email you have an example with
        a raster file, here you have it, in it the variable is the full
        file name, but you can do it how is better for you, being
        careful with the pattern</li>
    </ul><div class="im">
    <br>
    LAYER<br>
    <br>
        NAME &#39;Meteosat&#39;<br>
        <font color="#ff0000">TYPE RASTER</font><br>
        DUMP true<br>
        TOLERANCE 10<br>
        TOLERANCEUNITS DD
    <div><br>
          <br>
          HEADER &quot;templates/getfeatureinfo_header.html&quot; # header html
      template<br>
          TEMPLATE &quot;templates/getfeatureinfo_content.html&quot; # content
      html template<br>
          FOOTER &quot;templates/getfeatureinfo_footer.html&quot; # footer html
      template        <br>
          <br>
          METADATA            <br>
    </div>
            &#39;ows_title&#39; &#39;Meteosat&#39;
    <div><br>
              &#39;wms_feature_info_mime_type&#39; &quot;text/html&quot;<br>
              &quot;gml_include_items&quot; &quot;all&quot;            <br>
              &quot;wms_include_items&quot;   &quot;all&quot;<br>
    </div>
            &quot;ows_enable_request&quot;  &quot;*&quot;<br>
                <br>
            <font color="#ff0000">&#39;file_validation_pattern&#39;   
      &quot;[A-Z0-9._%+-|&#39;\(\)]&quot;</font><br>
           <font color="#ff0000"> &#39;default_file&#39;    &quot;ultima_imatge&quot;</font><br>
    <br>
        END<br>
    <br>
        <font color="#ff0000">VALIDATION<br>
              &#39;file&#39;    &quot;[A-Z0-9._%+-|&#39;\(\)]&quot;<br>
          END</font><br>
    <br>
       <font color="#ff0000"> DATA
      &#39;/var/www/html/mapserver/mfd_lin/datos/meteosat/%file%.img&#39;</font><br>
    <br>
    <br>
    </div><ul>
      <li>For the second point, till I know, the function shp2pgsql
        creates a script with all the attributes you have in the
        shapefile, if you want to have a time column that is not in the
        shapefile, you have to add it later after creating the table in
        the database, maybe somebody in the list knows how to do it
        automatically when you invoke shp2pgsql.<br>
      </li>
    </ul>
    <p>Helen<br>
    </p>
    <br>
    El 11/05/12 06:47, abhishek bansal escribió:
    <div><div class="h5"><blockquote type="cite">
      
      Hi Helen,<br>
      <br>
      I think I will have to do it ultimately by your way. Sorry for
      bothering you but could you please help me with these two
      questions<br>
      <br>
      1.) Will i be able to get raster data also with this method ?<br>
      2.) How do I include time data in postgis database as it is
      created automatically by shp2pgsql utility ?<br>
      <br>
      Thank You<br>
      Abhishek Bansal<br>
      <br>
      <div class="gmail_quote">On Thu, May 10, 2012 at 6:59 PM, Helen
        San Segundo Navazo <span dir="ltr">&lt;<a href="mailto:hsansegundo@meteo.cat" target="_blank">hsansegundo@meteo.cat</a>&gt;</span> wrote:<br>
        <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div text="#000000" bgcolor="#FFFFFF"> ok, good luck<br>
            <br>
            El 10/05/12 14:26, abhishek bansal escribió:
            <div>
              <div>
                <blockquote type="cite"> But I dont want to use any
                  database either !!<br>
                  <br>
                  <div class="gmail_quote">On Thu, May 10, 2012 at 5:47
                    PM, Helen San Segundo Navazo <span dir="ltr">&lt;<a href="mailto:hsansegundo@meteo.cat" target="_blank">hsansegundo@meteo.cat</a>&gt;</span>
                    wrote:<br>
                    <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      <div text="#000000" bgcolor="#FFFFFF"> using the
                        runtime substitution you can use getcapabilities
                        request with all the description to see layers,
                        proyections ...., it works as if you don&#39;t use
                        the variables<br>
                        <br>
                        Here you have an example using a binary file<br>
                        <br>
                        LAYER<br>
                        <br>
                            NAME &#39;Meteosat&#39;<br>
                            TYPE RASTER<br>
                            DUMP true<br>
                            TOLERANCE 10<br>
                            TOLERANCEUNITS DD
                        <div><br>
                              <br>
                              HEADER
                          &quot;templates/getfeatureinfo_header.html&quot; #
                          header html template<br>
                              TEMPLATE
                          &quot;templates/getfeatureinfo_content.html&quot; #
                          content html template<br>
                              FOOTER
                          &quot;templates/getfeatureinfo_footer.html&quot; #
                          footer html template        <br>
                              <br>
                              METADATA            <br>
                        </div>
                                &#39;ows_title&#39; &#39;Meteosat&#39;
                        <div><br>
                                  &#39;wms_feature_info_mime_type&#39;
                          &quot;text/html&quot;<br>
                                  &quot;gml_include_items&quot; &quot;all&quot;            <br>
                                  &quot;wms_include_items&quot;   &quot;all&quot;<br>
                        </div>
                                &quot;ows_enable_request&quot;  &quot;*&quot;<br>
                                    <br>
                                &#39;file_validation_pattern&#39;   
                        &quot;[A-Z0-9._%+-|&#39;\(\)]&quot;<br>
                        <br>
                                &#39;default_file&#39;    &quot;ultima_imatge&quot;<br>
                        <br>
                            END<br>
                        <br>
                            VALIDATION<br>
                                &#39;file&#39;    &quot;[A-Z0-9._%+-|&#39;\(\)]&quot;<br>
                            END<br>
                        <br>
                            DATA
                        &#39;/var/www/html/mapserver/mfd_lin/datos/meteosat/%file%.img&#39;<br>
                        <br>
                        <br>
                        <br>
                        <br>
                        <br>
                        El 10/05/12 14:08, abhishek bansal escribió:
                        <div>
                          <div>
                            <blockquote type="cite"> Hi,<br>
                              Thanks for your reply.<br>
                              But I need to specify in map file which
                              layers are available so that i can parse
                              output of getCapabilities and show
                              available layers to user.<br>
                              Also I am not using any database.<br>
                              <br>
                              <div class="gmail_quote"> On Thu, May 10,
                                2012 at 5:18 PM, Helen San Segundo
                                Navazo <span dir="ltr">&lt;<a href="mailto:hsansegundo@meteo.cat" target="_blank">hsansegundo@meteo.cat</a>&gt;</span>
                                wrote:<br>
                                <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                                  <div text="#000000" bgcolor="#FFFFFF">
                                    Hi, <br>
                                    I don&#39;t use the time dimension, what
                                    I use is run-time substitution <a href="http://mapserver.org/cgi/runsub.html" target="_blank">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>
                                        NAME &#39;name&#39;<br>
                                        HEADER
                                    &quot;templates/getfeatureinfo_header.html&quot;
                                    # header html template<br>
                                        TEMPLATE
                                    &quot;templates/getfeatureinfo_content.html&quot;
                                    # content html template<br>
                                        FOOTER
                                    &quot;templates/getfeatureinfo_footer.html&quot;
                                    # footer html template        <br>
                                        METADATA            <br>
                                            &#39;ows_title&#39; &#39;title&#39;<br>
                                            &#39;wms_feature_info_mime_type&#39;
                                    &quot;text/html&quot;<br>
                                            &quot;gml_include_items&quot; &quot;all&quot;   
                                            <br>
                                            &quot;wms_include_items&quot;  
                                    &quot;all&quot;    <br>
                                    <br>
                                            &#39;aini_validation_pattern&#39;   
                                    &#39;^[0-9]{1,8}$&#39;<br>
                                            &#39;afi_validation_pattern&#39;   
                                    &#39;^[0-9]{1,8}$&#39;<br>
                                           
                                    &#39;mini_validation_pattern&#39;     
                                    &#39;^[0-9]{1,8}$&#39;<br>
                                           
                                    &#39;mfi_validation_pattern&#39;     
                                    &#39;^[0-9]{1,8}$&#39;<br>
                                           
                                    &#39;dini_validation_pattern&#39;     
                                    &#39;^[0-9]{1,8}$&#39;<br>
                                           
                                    &#39;dfi_validation_pattern&#39;     
                                    &#39;^[0-9]{1,8}$&#39;<br>
                                    <br>
                                    <br>
                                            &#39;default_aini&#39;    &#39;2012&#39;<br>
                                            &#39;default_afi&#39;    &#39;2012&#39;<br>
                                            &#39;default_mini&#39;      &#39;4&#39;<br>
                                            &#39;default_mfi&#39;      &#39;4&#39;<br>
                                            &#39;default_dini&#39;      &#39;24&#39;<br>
                                            &#39;default_dfi&#39;      &#39;25&#39;<br>
                                    <br>
                                            <br>
                                        END<br>
                                        VALIDATION<br>
                                            &#39;aini&#39;    &#39;^[0-9]{1,8}$&#39;<br>
                                            &#39;afi&#39;    &#39;^[0-9]{1,8}$&#39;<br>
                                            &#39;mini&#39;      &#39;^[0-9]{1,8}$&#39;<br>
                                            &#39;mfi&#39;      &#39;^[0-9]{1,8}$&#39;<br>
                                            &#39;dini&#39;      &#39;^[0-9]{1,8}$&#39;<br>
                                            &#39;dfi&#39;      &#39;^[0-9]{1,8}$&#39;<br>
                                    <br>
                                        END<br>
                                        STATUS OFF<br>
                                                <br>
                                        PROJECTION<br>
                                       &quot;init=epsg:4326&quot;<br>
                                        END<br>
                                    <br>
                                      CONNECTIONTYPE postgis<br>
                                      CONNECTION &quot;user=postgres
                                    password=pp dbname=mm host=host&quot; <br>
                                      DATA &quot;the_geom FROM (SELECT
                                    oid,geometry_columns<br>
                                                                       
                                            from table<br>
                                                                       
                                            where
                                    time&gt;=&#39;%aini%-%mini%-%dini%
                                    00:00:00&#39;<br>
                                                                       
                                            and
                                    time&lt;&#39;%afi%-%mfi%-%dfi% 00:00:00&#39;<br>
                                                                       
                                            ) <br>
                                            AS r USING UNIQUE oid USING
                                    SRID=4326&quot; <br>
                                    <br>
                                    <br>
                                    ....<br>
                                    <br>
                                    El 10/05/12 13:24, abhishek bansal
                                    escribió:
                                    <blockquote type="cite">
                                      <div>
                                        <div> Hello All<br>
                                          <div>
                                            <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></fieldset>
                                          <br>
                                        </div>
                                      </div>
                                      <pre>_______________________________________________
mapserver-users mailing list
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a>
</pre>
                                    </blockquote>
                                    <br>
                                  </div>
                                  <br>
_______________________________________________<br>
                                  mapserver-users mailing list<br>
                                  <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
                                  <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
                                  <br>
                                </blockquote>
                              </div>
                              <br>
                              <br clear="all">
                              <br>
                              -- <br>
                              Thanks &amp; Regards,<br>
                              Abhishek Bansal<br>
                              <a href="http://abhishekbansal.miyuri.com" target="_blank">http://abhishekbansal.miyuri.com</a><br>
                              Jaypee Institute of Information
                              Technology, Noida<br>
                              <br>
                              <br>
                            </blockquote>
                            <br>
                          </div>
                        </div>
                      </div>
                    </blockquote>
                  </div>
                  <br>
                  <br clear="all">
                  <br>
                  -- <br>
                  Thanks &amp; Regards,<br>
                  Abhishek Bansal<br>
                  <a href="http://abhishekbansal.miyuri.com" target="_blank">http://abhishekbansal.miyuri.com</a><br>
                  Jaypee Institute of Information Technology, Noida<br>
                  <br>
                  <br>
                </blockquote>
                <br>
              </div>
            </div>
          </div>
        </blockquote>
      </div>
      <br>
      <br clear="all">
      <br>
      -- <br>
      Thanks &amp; Regards,<br>
      Abhishek Bansal<br>
      <a href="http://abhishekbansal.miyuri.com" target="_blank">http://abhishekbansal.miyuri.com</a><br>
      Jaypee Institute of Information Technology, Noida<br>
      <br>
      <br>
    </blockquote>
    <br>
  </div></div></div>

<br>_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Thanks &amp; Regards,<br>Abhishek Bansal<br><a href="http://abhishekbansal.miyuri.com" target="_blank">http://abhishekbansal.miyuri.com</a><br>Jaypee Institute of Information Technology, Noida<br>
<br><br>