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"><<a href="mailto:hsansegundo@meteo.cat" target="_blank">hsansegundo@meteo.cat</a>></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 'Meteosat'<br>
        <font color="#ff0000">TYPE RASTER</font><br>
        DUMP true<br>
        TOLERANCE 10<br>
        TOLERANCEUNITS DD
    <div><br>
          <br>
          HEADER "templates/getfeatureinfo_header.html" # header html
      template<br>
          TEMPLATE "templates/getfeatureinfo_content.html" # content
      html template<br>
          FOOTER "templates/getfeatureinfo_footer.html" # footer html
      template        <br>
          <br>
          METADATA            <br>
    </div>
            'ows_title' 'Meteosat'
    <div><br>
              'wms_feature_info_mime_type' "text/html"<br>
              "gml_include_items" "all"            <br>
              "wms_include_items"   "all"<br>
    </div>
            "ows_enable_request"  "*"<br>
                <br>
            <font color="#ff0000">'file_validation_pattern'   
      "[A-Z0-9._%+-|'\(\)]"</font><br>
           <font color="#ff0000"> 'default_file'    "ultima_imatge"</font><br>
    <br>
        END<br>
    <br>
        <font color="#ff0000">VALIDATION<br>
              'file'    "[A-Z0-9._%+-|'\(\)]"<br>
          END</font><br>
    <br>
       <font color="#ff0000"> DATA
      '/var/www/html/mapserver/mfd_lin/datos/meteosat/%file%.img'</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"><<a href="mailto:hsansegundo@meteo.cat" target="_blank">hsansegundo@meteo.cat</a>></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"><<a href="mailto:hsansegundo@meteo.cat" target="_blank">hsansegundo@meteo.cat</a>></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't use
                        the variables<br>
                        <br>
                        Here you have an example using a binary file<br>
                        <br>
                        LAYER<br>
                        <br>
                            NAME 'Meteosat'<br>
                            TYPE RASTER<br>
                            DUMP true<br>
                            TOLERANCE 10<br>
                            TOLERANCEUNITS DD
                        <div><br>
                              <br>
                              HEADER
                          "templates/getfeatureinfo_header.html" #
                          header html template<br>
                              TEMPLATE
                          "templates/getfeatureinfo_content.html" #
                          content html template<br>
                              FOOTER
                          "templates/getfeatureinfo_footer.html" #
                          footer html template        <br>
                              <br>
                              METADATA            <br>
                        </div>
                                'ows_title' 'Meteosat'
                        <div><br>
                                  'wms_feature_info_mime_type'
                          "text/html"<br>
                                  "gml_include_items" "all"            <br>
                                  "wms_include_items"   "all"<br>
                        </div>
                                "ows_enable_request"  "*"<br>
                                    <br>
                                'file_validation_pattern'   
                        "[A-Z0-9._%+-|'\(\)]"<br>
                        <br>
                                'default_file'    "ultima_imatge"<br>
                        <br>
                            END<br>
                        <br>
                            VALIDATION<br>
                                'file'    "[A-Z0-9._%+-|'\(\)]"<br>
                            END<br>
                        <br>
                            DATA
                        '/var/www/html/mapserver/mfd_lin/datos/meteosat/%file%.img'<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"><<a href="mailto:hsansegundo@meteo.cat" target="_blank">hsansegundo@meteo.cat</a>></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'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 'name'<br>
                                        HEADER
                                    "templates/getfeatureinfo_header.html"
                                    # header html template<br>
                                        TEMPLATE
                                    "templates/getfeatureinfo_content.html"
                                    # content html template<br>
                                        FOOTER
                                    "templates/getfeatureinfo_footer.html"
                                    # footer html template        <br>
                                        METADATA            <br>
                                            'ows_title' 'title'<br>
                                            'wms_feature_info_mime_type'
                                    "text/html"<br>
                                            "gml_include_items" "all"   
                                            <br>
                                            "wms_include_items"  
                                    "all"    <br>
                                    <br>
                                            'aini_validation_pattern'   
                                    '^[0-9]{1,8}$'<br>
                                            'afi_validation_pattern'   
                                    '^[0-9]{1,8}$'<br>
                                           
                                    'mini_validation_pattern'     
                                    '^[0-9]{1,8}$'<br>
                                           
                                    'mfi_validation_pattern'     
                                    '^[0-9]{1,8}$'<br>
                                           
                                    'dini_validation_pattern'     
                                    '^[0-9]{1,8}$'<br>
                                           
                                    'dfi_validation_pattern'     
                                    '^[0-9]{1,8}$'<br>
                                    <br>
                                    <br>
                                            'default_aini'    '2012'<br>
                                            'default_afi'    '2012'<br>
                                            'default_mini'      '4'<br>
                                            'default_mfi'      '4'<br>
                                            'default_dini'      '24'<br>
                                            'default_dfi'      '25'<br>
                                    <br>
                                            <br>
                                        END<br>
                                        VALIDATION<br>
                                            'aini'    '^[0-9]{1,8}$'<br>
                                            'afi'    '^[0-9]{1,8}$'<br>
                                            'mini'      '^[0-9]{1,8}$'<br>
                                            'mfi'      '^[0-9]{1,8}$'<br>
                                            'dini'      '^[0-9]{1,8}$'<br>
                                            'dfi'      '^[0-9]{1,8}$'<br>
                                    <br>
                                        END<br>
                                        STATUS OFF<br>
                                                <br>
                                        PROJECTION<br>
                                       "init=epsg:4326"<br>
                                        END<br>
                                    <br>
                                      CONNECTIONTYPE postgis<br>
                                      CONNECTION "user=postgres
                                    password=pp dbname=mm host=host" <br>
                                      DATA "the_geom FROM (SELECT
                                    oid,geometry_columns<br>
                                                                       
                                            from table<br>
                                                                       
                                            where
                                    time>='%aini%-%mini%-%dini%
                                    00:00:00'<br>
                                                                       
                                            and
                                    time<'%afi%-%mfi%-%dfi% 00:00:00'<br>
                                                                       
                                            ) <br>
                                            AS r USING UNIQUE oid USING
                                    SRID=4326" <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 & 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 & 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 & 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 & 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 & 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>