<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>
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
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 & 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>