It works!!!!!!!!!!!!!!!! yeahhhhhhhhhhhh<br><br>I changed the EXTENT in the beginnig &quot;EXTENT 199949.651166 -371954.772084 1472121.6862 632767.19157&quot; by &quot;EXTENT -180 -90 180 90&quot; and also in the url and now it works<br>
<br><br> <br>MAP
<br>  IMAGETYPE      PNG24<br>  EXTENT -180 -90 180 90
<br>  SIZE           400 300
<br>  CONFIG &quot;MS_ERRORFILE&quot; &quot;/var/log/mapserver/mapserver.log&quot;<br> <br>  PROJECTION
<br>     &quot;init=epsg:4326&quot;
<br>  END # End of the output Projection definition ---<br><br> LAYER<br>    NAME    &quot;time_w&quot;<br>    TYPE    POLYGON<br>    STATUS    ON<br> DEBUG 3<br>    CONNECTIONTYPE  POSTGIS<br>    CONNECTION    &quot;dbname=tile_index host=127.0.0.1 user=postgres password=xxxxxx&quot;<br>
    DATA    &quot;the_geom from satellite using unique oid using srid = 4326&quot; <br>    METADATA<br>        &quot;wms_title&quot;    &quot;time_index_w&quot;<br>        &quot;wms_srs&quot;    &quot;EPSG:4326&quot;<br>        &quot;wms_timeextent&quot;    &quot;2007-01-01/2007-12-31&quot;<br>
#        &quot;wms_timeextent&quot;    &quot;2007-05-11T10:00:00Z,2007-05-11T11:00:00Z&quot;<br>        &quot;wms_timedefault&quot;   &quot;2007-05-11T10:00:00Z&quot; <br>        &quot;wms_timeitem&quot;    &quot;image_time&quot; #a column in postgis table of type <br>
    END<br>  END<br><br>  LAYER<br>    NAME    &quot;sat_w&quot;<br>    STATUS  ON<br> DEBUG 3<br>    TYPE    RASTER<br>    METADATA<br>        &quot;wms_title&quot;    &quot;Satellite&quot;<br>        &quot;wms_timeextent&quot;    &quot;2007-01-01/2007-12-31&quot;<br>
#    &quot;wms_extent&quot; &quot;-126 24 -66 50&quot;<br>    &quot;wms_extent&quot; &quot;-180 -90 180 90&quot;<br>    END<br>    PROJECTION<br>      &quot;init=epsg:4326&quot;<br>    END<br>    TILEINDEX &quot;time_w&quot; # Layer name containing time index<br>
    TILEITEM  &quot;image_path&quot; # DB column containing path to image <br>  END<br><br>END<br><br><a href="http://mapserver-tutorial/cgi-bin/mapserv?map=/home/vbox/Downloads/mapserver-tutorial/ms4w/apps/tutorial/htdocs/tile_time.map&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;LAYERS=time_w,sat_w&amp;WIDTH=800&amp;HEIGHT=400&amp;FORMAT=image/png&amp;TRANSPARENT=false&amp;srs=EPSG:4326&amp;BBOX=-180,-90,180,90&amp;TIME=2007-05-11T10:00:00">http://mapserver-tutorial/cgi-bin/mapserv?map=/home/vbox/Downloads/mapserver-tutorial/ms4w/apps/tutorial/htdocs/tile_time.map&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;LAYERS=time_w,sat_w&amp;WIDTH=800&amp;HEIGHT=400&amp;FORMAT=image/png&amp;TRANSPARENT=false&amp;srs=EPSG:4326&amp;BBOX=-180,-90,180,90&amp;TIME=2007-05-11T10:00:00</a><br>
<br><br>thanks.<br><br><div class="gmail_quote">2010/7/6 rai 8 <span dir="ltr">&lt;<a href="mailto:max1000@gmail.com">max1000@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
hello,<br><br>I discovered a bit more about how the things works, but I&#39;m little confusing with this...<br><br><br>with this url <br><div class="im"><a href="http://mapserver-tutorial/cgi-bin/mapserv?map=/home/vbox/Downloads/mapserver-tutorial/ms4w/apps/tutorial/htdocs/tile_time.map&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;LAYERS=time_w,sat_w&amp;WIDTH=800&amp;HEIGHT=400&amp;FORMAT=image/png&amp;TRANSPARENT=false&amp;srs=EPSG:4326&amp;BBOX=-126,24,-66,50&amp;TIME=2007-05-11T10:00:00" target="_blank">http://mapserver-tutorial/cgi-bin/mapserv?map=/home/vbox/Downloads/mapserver-tutorial/ms4w/apps/tutorial/htdocs/tile_time.map&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;LAYERS=time_w,sat_w&amp;WIDTH=800&amp;HEIGHT=400&amp;FORMAT=image/png&amp;TRANSPARENT=false&amp;srs=EPSG:4326&amp;BBOX=-126,24,-66,50&amp;TIME=2007-05-11T10:00:00</a><br>

<br>    <br></div>looking to log I found two querys to database, the first from tile_w layer has a correct result if you check in postgresql directly, also in mapserver log says that got 1 record in the result. I changed &#39;find_srid(&#39;&#39;,&#39;satellite&#39;,&#39;the_geom&#39;))&#39; that appears in log by &#39;4326&#39; because in postgresql seems that it doesn&#39;t work.<div class="im">
<br>
<br> select <br>    &quot;image_time&quot;,<br>    encode(AsBinary(force_collection(force_2d(&quot;the_geom&quot;)),&#39;NDR&#39;),&#39;base64&#39;) as geom,<br>    &quot;oid&quot; <br>    from satellite <br>    where <br>

    the_geom &amp;&amp; <br></div>    GeomFromText(&#39;POLYGON((-2639868.99029283 -2322020.83542886,-2639868.99029283 1072412.78850334,3408818.1364184 1072412.78850334,3408818.1364184 -2322020.83542886,-2639868.99029283 -2322020.83542886))&#39;, 4326 ) and (date_trunc(&#39;second&#39;, image_time) = &#39;2007-05-11T10:00:00&#39;)<br>

<br>the other query from sat_w layer has no results, note that the polygon parameter has the same points as the url<div class="im"><br> select     <br>    &quot;image_time&quot;,<br>    encode(AsBinary(force_collection(force_2d(&quot;the_geom&quot;)),&#39;NDR&#39;),&#39;base64&#39;) as geom,<br>
</div>
    &quot;oid&quot; 2<div class="im"><br>    from satellite <br>    where <br>    the_geom &amp;&amp; <br></div>    GeomFromText(&#39;POLYGON((-126 24,-126 50,-66 50,-66 24,-126 24))&#39;,4326) and (date_trunc(&#39;second&#39;, image_time) = &#39;2007-05-11T10:00:00&#39;)<br>

    <br><br><br><br>with this url log says that 1 result have been found in both querys, it&#39;s the same but changing the points of the bounding box, but it doesn&#39;t show any image, I think that the problem is in the coordinates or the projection used, in mapfile or in url.. I&#39;ll try to change something :)<br>

<br><br><a href="http://mapserver-tutorial/cgi-bin/mapserv?map=/home/vbox/Downloads/mapserver-tutorial/ms4w/apps/tutorial/htdocs/tile_time.map&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;LAYERS=time_w,sat_w&amp;WIDTH=1000&amp;HEIGHT=600&amp;FORMAT=image/png&amp;TRANSPARENT=false&amp;srs=EPSG:4326&amp;BBOX=-2639868.99029283,-2322020.83542886,3408818.1364184,1072412.78850334&amp;TIME=2007-05-11T10:00:00" target="_blank">http://mapserver-tutorial/cgi-bin/mapserv?map=/home/vbox/Downloads/mapserver-tutorial/ms4w/apps/tutorial/htdocs/tile_time.map&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;LAYERS=time_w,sat_w&amp;WIDTH=1000&amp;HEIGHT=600&amp;FORMAT=image/png&amp;TRANSPARENT=false&amp;srs=EPSG:4326&amp;BBOX=-2639868.99029283,-2322020.83542886,3408818.1364184,1072412.78850334&amp;TIME=2007-05-11T10:00:00</a><br>

<br>[Tue Jul  6 10:49:01 2010].865473 msPostGISLayerWhichShapes query: select &quot;image_time&quot;,&quot;image_path&quot;,encode(AsBinary(force_collection(force_2d(&quot;the_geom&quot;)),&#39;NDR&#39;),&#39;base64&#39;) as geom,&quot;oid&quot; from satellite where the_geom &amp;&amp; GeomFromText(&#39;POLYGON((-2639868.99029283 -2322020.83542886,-2639868.99029283 1072412.78850334,3408818.1364184 1072412.78850334,3408818.1364184 -2322020.83542886,-2639868.99029283 -2322020.83542886))&#39;,find_srid(&#39;&#39;,&#39;satellite&#39;,&#39;the_geom&#39;)) and (date_trunc(&#39;second&#39;, image_time) = &#39;2007-05-11T10:00:00&#39;)<br>

[Tue Jul  6 10:49:01 2010].929571 msPostGISLayerWhichShapes query status: 2<br>[Tue Jul  6 10:49:01 2010].929611 msPostGISLayerWhichShapes got 1 records in result.<br>[Tue Jul  6 10:49:01 2010].929632 msPostGISLayerNextShape called.<br>

[Tue Jul  6 10:49:01 2010].929651 msPostGISReadShape called.<br>[Tue Jul  6 10:49:01 2010].929675 msPostGISReadShape: [image_time] &quot;2007-05-11 10:00:00&quot;<br>[Tue Jul  6 10:49:01 2010].929694 msPostGISReadShape: [image_path] &quot;/home/vbox/Downloads/animacio/sat1.tif&quot;<br>

<br><br><br>thanks!<br><br>
</blockquote></div><br>