[mapserver-users] WMS T time series data support

Sushrut Shivaswamy sushrut.shivaswamy at gmail.com
Wed Jan 11 01:48:39 PST 2017


Hey,

I created a WMS-T layer from a time series image mosaic as follows.


   - Ran gdaltindex on the tiff files to generate the index shapefle called
   index.shp.
   - I edited the index.shp file in QGIS and added another column called
   "timeWater" and added the time value in YYYY-MM-DD format next to each
   location entry.
   - I added this layer to the mapfie as follows.


























*LAYERNAME "Inundation"  TYPE RASTER  STATUS ON  DEBUG ON  PROJECTION
"init=epsg:4326"  END  METADATA    "wms_title" "INUN_WMS_T"    "wms_srs"
"EPSG:4326"    "wms_extent" "67.6 7.34 97.7 38.74"    "wms_timeextent"
"2015-12-01/2015-12-03"    "wms_timeitem" "timeWater" #timeWater is a
column in the index shapefile specifying time value for each tiff image
"wms_timedefault" "2015-12-03"    "wms_timeformat" "YYYY-MM-DD"  END
#TILEITEM "location" #filepath is a column in postgis table with varchar of
the filepath to each image  TILEINDEX "index"  #index is the name of the
shape file generated with gdaltindex  FILTER (`[timeWater]` =
`2015-12-03`)CLASS  #class to show the image in red      STYLE        COLOR
236 0 0      END # STYLE    END # CLASSEND*

The TILEINDEX property is set to "index" which is the name of the index
shapefile haveing the path and time in its columns.
The paths to the TIFF files are in the "location" column.
The time field is in the column "timeWater".

The *GetCapabilities* request now shows my layer with a
*<Dimension></Dimension>* field in it so I assume it has been published
properly as a layer.
Despite this when I make a GetMap request to this layer I get a blank image
in png format and a black image in jpeg format.

I*s the TILEINDEX property in the map file the name of the shape file or
the name of a PostGIS table?*

Any idea on what could be wrong?

Note: The paths mentioned in the index shapefile are correct and relative
to the map file.
          The index shapefile has also been placed in the same directory as
the .map file.

Regards,
Sushrut Shivaswamy

On Tue, Jan 10, 2017 at 7:15 PM, Schepers, Benjamin <schepers at rvr-online.de>
wrote:

> Hi Sushrut,
>
>
>
> yes this should be possible.
>
>
>
> Here are general information:
>
> http://mapserver.org/ogc/wms_time.html
>
>
>
> Build index with time-information for your needs (also works for wms):
>
> http://mapserver.org/ogc/wcs_server.html#building-spatio-
> temporal-tile-indexes
>
>
>
> è This is a index-shapefile including a BBOX of every tif-file, the
> tif-path within the filesystem and another column with the date of the
> specific file. The date-field needs to be created/filled manually…
>
>
>
> I just thought of writing a python script (extending “gdaltindex”
> commandline-utility), which reads the date from tif-metadata
> ('TIFFTAG_DATETIME' ) and writes it to the index-shape.
>
>
>
>
>
> Regards
>
> Ben
>
>
>
> Mit freundlichen Grüßen
> Im Auftrag
>
>
>
> *Benjamin Schepers *
> Luftbild und Geoinformationssysteme
> Kronprinzenstraße 6
> 45128 Essen
> Fon: +49 201 2069-232
> Fax: +49 201 2069-369
> schepers at rvr-online.de
>
>
>
>
> *Die Regionaldirektorin *Kronprinzenstraße 35
> 45128 Essen
> Zentrale: +49 (0) 201 2069-0
> Fax: +49 (0) 201 2069-500
> www.metropoleruhr.de
>
> Postfach 10 32 64
> 45032 Essen
>
> Steuernummer: RVR 112/5797/0116
> USt.-ldNr.: DE 173867500
>
> Diese E-Mail koennte vertrauliche und/oder rechtlich geschuetzte
> Informationen enthalten.
> Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich
> erhalten haben, informieren Sie bitte sofort den Absender und vernichten
> Sie diese Mail.
> Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail sind
> nicht gestattet.
> This e-mail may contain confidential and/or privileged information.
> If you are not the intended recipient (or have received this e-mail in
> error) please notify the sender immediately and destroy this e-mail.
> Any unauthorised copying, disclosure or distribution of the material in
> this e-mail is strictly forbidden.
>
> *Von:* mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] *Im
> Auftrag von *Sushrut Shivaswamy
> *Gesendet:* Dienstag, 10. Januar 2017 14:34
> *An:* mapserver-users at lists.osgeo.org
> *Betreff:* [mapserver-users] WMS T time series data support
>
>
>
> Hey,
>
>
>
> I'm trying to visualise my time series data set using map server.
>
> I have a series of files with file names in the format
> * {coveragename}_{timestamp}.tif*.
>
>
> I need to query a single layer composed of the data from all these files
> and
> see the data by varying the TIME parameter in my GetMap request.
>
> GeoServer provides a tutorial on how to setup an Image Mosaic as time
> series layer.
>
> Is there way to get the same effect in MapServer.
>
> Regards,
> Sushrut Shivaswamy
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20170111/ea95c382/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 8303 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20170111/ea95c382/attachment.jpg>


More information about the MapServer-users mailing list