Feature request #13085

Add WMS-T (time) support

Added by Anita Graser over 1 year ago. Updated over 1 year ago.

Status:Open Start Date:07/06/2015
Priority:Normal Due date:
Assigned to:- % Done:


Category:WMS Client
Target version:Future Release - Nice to have
Platform: Resolution:
Platform version: Pull Request or Patch supplied:No
Status info: Tag:


Related issues

related to QGIS Application - Feature request #8809: WMS/WMTS with dimension parameters should be handled Open 10/09/2013


Updated by Anita Graser over 1 year ago

  • Subject changed from Add WMS-T support to Add WMS-T (time) support

Updated by David Forrest over 1 year ago

QGIS is currently able to access a WMST service as a plain WMS serivice by awkwardly embedding the TIME=????& parameter in the URL and not letting the system use the URIs from the GetCapabilities document. For an example see http://gis.stackexchange.com/questions/34667/does-qgis-have-wms-t-wms-with-time-support/153709#153709

Maybe one way to make this improvement easier would be making the Layer/Properties/General/Layer Source an editable field so a user could manually update the optional parameters in the URL. If editing a layer's WMS service prefix string was programmatically accessible, then a plugin could perhaps be written to get the time and other optional dimensions from the capabilities document, and then provide UI tools to modify or control them.

As a sample use-case, the WMS-T service at http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r-t.cgi?TIME=2005-08-29T13:10:00Z&LAYERS=nexrad-n0r-wmst&TRANSPARENT=TRUE&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities looks like it should have about 1 million rasters to play with.

Updated by David Forrest over 1 year ago

One can programmatically add and update a WMS-T layer like this:

urlWithParams = 'IgnoreGetFeatureInfoUrl=1&IgnoreGetMapUrl=1&contextualWMSLegend=0&crs=EPSG:3857&dpiMode=7&featureCount=10&format=image/png&layers=nexrad-n0r-wmst&styles=&url=http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r-t.cgi?TIME%3D2005-08-29T13:10:00Z%26LAYERS%3Dnexrad-n0r-wmst%26TRANSPARENT%3DTRUE%26VERSION%3D1.1.1%26'

urlWithParams2 = 'IgnoreGetFeatureInfoUrl=1&IgnoreGetMapUrl=1&contextualWMSLegend=0&crs=EPSG:3857&dpiMode=7&featureCount=10&format=image/png&layers=nexrad-n0r-wmst&styles=&url=http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r-t.cgi?TIME%3D2005-08-29T06:10:00Z%26LAYERS%3Dnexrad-n0r-wmst%26TRANSPARENT%3DTRUE%26VERSION%3D1.1.1%26'

rlayer = QgsRasterLayer(urlWithParams, 'radar WMST timeV2', 'wms')

#update to different time

Updated by Nicolas Boisteault over 1 year ago

Related issue #8809

Also available in: Atom