Please send your replies via the list so that others who know better than me about time support can help, and that other users who may have similar problems can benefit from the answers when they search the archives.

Back to your last question, at first sight, what you have seems right, and already combines the spatial index and time index. If you have multiple images listed in your OMTO3ECOLUMNAMOUNTO3IDX layer that fit in the requested map view and whose time attribute match the requested time, then they should all be displayed.

If that doesn't work for you, then you will have to provide more specific details to help us understand the exact problem.

Daniel


Peisheng Zhao wrote:
Daniel,

I also use postgis to generate time index, just like this:

 LAYER
        STATUS ON
        NAME        "OMTO3ECOLUMNAMOUNTO3IDX"
        TYPE POLYGON
        CONNECTIONTYPE POSTGIS
CONNECTION "dbname=mapserver password=anonymous user=anonymous port=5432"
        DATA        "the_geom from omto3e_003_columnamounto3"
        METADATA
                "wms_title"    "OMTO3e Total Ozone Solution Index"
                "ows_service"  "none"
        END
    END
LAYER
        NAME 'OMTO3e_ColumnAmountO3'
        TYPE RASTER
        STATUS ON
        PROCESSING "SCALE=50,700"
DEBUG ON
        DUMP TRUE
        PROJECTION
                "init=epsg:4326"   ##recommended
        END
        METADATA
                wms_title       "Best Total Ozone Solution"   ##required
                wms_timeextent  "2004-08-30/2010-04-03"
                wms_srs         "EPSG:4326"
                wms_timeitem    "time"
                wms_timedefault "2010-04-03"
                wms_extent      "-180.0 -90.0 180.0 90.0"
        END
        TILEITEM             "location"
        TILEINDEX            "OMTO3ECOLUMNAMOUNTO3IDX"
  END

The TILEITEM "location" in database points to a data file. Do you mean "location" can point to an individual tiled image and MapServer can tile up couple of tiled images which have the same timestamp?

Thanks.


 > Date: Wed, 14 Apr 2010 13:28:47 -0400
 > From: [email protected]
 > To: [email protected]
 > Subject: Re: [mapserver-users] multiple tileindex in a layer
 >
 > Peisheng Zhao wrote:
 > > Daniel,
 > >
 > > Thank you for your answer.
 > >
 > > Generally, I use gdaltindex to create a shp file for spatial index. Do
> > you mean I need to add a time attribute into this? Could you give me an
 > > example? Thanks a lot.
 > >
 >
 > That's correct. You need to use a script or some manual method to add
 > and populate a time attribute in the DBF of the tileindex that was
 > created with gdaltindex.
 >
 > I do not have an example, but you can read more about this approach here:
 > http://mapserver.org/ogc/wcs_server.html#spatio-temporal-indexes
 >
 > It may be easier to fill in the time attributes if you use a PostGIS
 > table instead of a shapefile as the tileindex. There is an example of
 > the corresponding layer definitions here:
> http://mapserver.org/ogc/wms_time.html#example-of-wms-t-with-postgis-tile-index-for-raster-imagery
 >
 >
 > Daniel
 > --
 > Daniel Morissette
 > http://www.mapgears.com/
 > _______________________________________________
 > mapserver-users mailing list
 > [email protected]
 > http://lists.osgeo.org/mailman/listinfo/mapserver-users

------------------------------------------------------------------------
The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail. Get busy. <http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4>


--
Daniel Morissette
http://www.mapgears.com/
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to