Problem using tileindex for time dimension

Paul Tildesley Paul.Tildesley at CSIRO.AU
Tue Nov 8 22:46:59 EST 2005


I am trying to implement a layer with a time dimension in MapServer to
serve a set of raster images covering 6 months.

I have created a tile index that looks like this:

INFO: Open of `tindex.shp'
using driver `ESRI Shapefile' successful.

Layer name: tindex
Geometry: Polygon
Feature Count: 91
Extent: (79.969000, -65.015900) - (190.057000, 10.044100)
Layer SRS WKT:
(unknown)
location: String (254.0)
time_stamp: String (8.0)
OGRFeature(tindex):0
  location (String) = SSTcomp10d_Aasia_2002_1_1_0.tif
  time_stamp (String) = 20020101
  POLYGON ((79.96900000 10.04410000,190.05700000
10.04410000,190.05700000 -65.01590000,79.96900000
-65.01590000,79.96900000 10.04410000))

OGRFeature(tindex):1
  location (String) = SSTcomp10d_Aasia_2002_1_11_0.tif
  time_stamp (String) = 20020111
  POLYGON ((79.96900000 10.04410000,190.05700000
10.04410000,190.05700000 -65.01590000,79.96900000
-65.01590000,79.96900000 10.04410000))

OGRFeature(tindex):2
  location (String) = SSTcomp10d_Aasia_2002_1_13_0.tif
  time_stamp (String) = 20020113
  POLYGON ((79.96900000 10.04410000,190.05700000
10.04410000,190.05700000 -65.01590000,79.96900000
-65.01590000,79.96900000 10.04410000))


For a total of 90 tiles. I then reference this in my map file as
follows:

LAYER
  NAME sst_timeset
  TYPE RASTER
  TILEINDEX tindex
  STATUS ON
  METADATA
    WMS_TITLE "Australian Region SST January to June 2002"
    WMS_ABSTRACT "Sea-surface temperature for the Australian region. Ten
day composites every second day."
    WMS_TIMEFORMAT "YYYYMMDD"
    WMS_TIMEEXTENT "20020101/20020630"
    WMS_TIMEDEFAULT "20020101"
    WMS_TIMEITEM "time_stamp"
  END
  OFFSITE 255 255 255

  DUMP TRUE
END

When I access the layer, either with or without specifying a time, I
always get the last tile rendered, which happens to be 20020608 (I am
assuming that the tiles do not need to be in time increasing order).

An example request is:
http://www.marine.csiro.au/mapserver/cgi-bin/mapserv?map=/srv/www/htdocs
/sst/sst_multi.map&VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&SRS=EPSG:432
6&FORMAT=image/gif&EXCEPTIONS=application/vnd.ogc.sexml&WIDTH=400&HEIGHT
=250&LAYERS=sst_timeset&TIME=20020401

Does anyone know what I am doing wrong? Any ideas or suggestions would
be appreciated.

Paul.



More information about the mapserver-users mailing list