[mapserver-users] WMS T time series data support

Sushrut Shivaswamy sushrut.shivaswamy at gmail.com
Wed Jan 11 10:17:08 PST 2017


Hey,

Thanks for all the responses. They were a great help.
A it turns out my dataset was in EPSG:32644 projection.

I ran gdaltindex again as:

    gdaltindex -t_srs "EPSG:4326" *-src_srs_name* "tile_srs" index.shp
*.tiff

to create an index with the projection of each tiff in the tile_srs column.
I then added the time stamp in each row and added the layer to the map file
with the TILESRS option set to the attribute name "tile_srs".

The GetMap request for the following procedure gave the error "All points
failed to reproject".


To avoid this I reprojected all my layers to "EPSG:4326" and added to the
map file without the TILESRS option.
To test whether the layer is time enabled I sent a GetMap request with the
time parameter outside the "wms_timeextent"
and I got an error saying that the requested time is out of bounds.

The images produced by the GetMap request are all still blank.

Can anyone point out where I could have gone wrong in this process.

Regards,
Sushrut Shivaswamy

On Wed, Jan 11, 2017 at 9:15 PM, Schepers, Benjamin <schepers at rvr-online.de>
wrote:

> Hey,
>
>
>
> hmmmm, debugging can be an awful thing…..
>
>
>
> Always have a look at the logs (error, etc.).
>
>
>
> I’d suppose, that mapserver can’t find the tiles.
>
> A valid DIMENSION-Element in GetCapabilities could look like this:
>
> <Dimension name="time" units="ISO8601" default="2016"
> nearestValue="0">2009/2016/P1Y</Dimension>    ß in this case the dataset
> supports time from 2009-2016 in one-year-steps]
>
>
>
>
>
> Are you really sure about the right relations on paths? See:
>
> http://mapserver.org/optimization/tileindex.html#tileindex
>
>
>
> I can’t see any “SHAPEPATH” (directory of index), which is referenced in
> MAP-section, see:
>
> http://mapserver.org/mapfile/map.html [from mapserver-docs: … Normally
> the location should contain the path to the tile file relative to the
> shapepath, not relative to the tileindex itself. … ]
>
>
>
>
>
> What also works for me is using absolute paths:
>
> Please try the the absolute path to tileindex, e.g.:
>
> TILEINDEX "/data/subfolder/index"
>
>
>
> My index-file also contains absolute paths to tiff-files
>
>
>
>
>
> <I*s the TILEINDEX property in the map file the name of the shape file or
> the name of a PostGIS table?*
>
> Both (and still more) ways are possible, for example SpatiaLite-Layer
> (OGR-Connection), other layers from same mapfile…
>
>
>
> Hope, it helps
>
>
>
> Ben
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20170111/270e0095/attachment-0001.html>


More information about the mapserver-users mailing list