Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add WMS-T (time) support #21152

Closed
qgib opened this issue Jul 6, 2015 · 8 comments
Closed

Add WMS-T (time) support #21152

qgib opened this issue Jul 6, 2015 · 8 comments
Labels
Data Provider Related to specific vector, raster or mesh data providers Feature Request Feedback Waiting on the submitter for answers

Comments

@qgib
Copy link
Contributor

qgib commented Jul 6, 2015

Author Name: Anita Graser (@anitagraser)
Original Redmine Issue: 13085

Redmine category:web_services_clients/wms


Add support for WMS with time support to Add WMS layer.

http://docs.geoserver.org/latest/en/user/services/wms/time.html

http://mapserver.org/ogc/wms_time.html


Related issue(s): #17507 (relates)
Redmine related issue(s): 8809


@qgib
Copy link
Contributor Author

qgib commented Jul 6, 2015

Author Name: Anita Graser (@anitagraser)


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

@qgib
Copy link
Contributor Author

qgib commented Jul 8, 2015

Author Name: David Forrest (David Forrest)


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.

@qgib
Copy link
Contributor Author

qgib commented Jul 9, 2015

Author Name: David Forrest (David Forrest)


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')
QgsMapLayerRegistry.instance().addMapLayer(rlayer)

#update to different time
rlayer.dataProvider().setDataSourceUri(urlWithParams2)
rlayer.dataProvider().reloadData()
rlayer.triggerRepaint()



@qgib
Copy link
Contributor Author

qgib commented Oct 16, 2015

Author Name: Nicolas Boisteault (@nboisteault)


Related issue #17507

@qgib
Copy link
Contributor Author

qgib commented Apr 30, 2017

Author Name: Giovanni Manghi (@gioman)


  • easy_fix was configured as 0

@qgib
Copy link
Contributor Author

qgib commented Sep 18, 2017

Author Name: Anita Graser (@anitagraser)


TimeManager implements browsing WMS-T layers but it only helps for visualizations. Missing TIME parameters cause GetFeatureInfo requests to fail - or more specifically - Geoserver will assume some default time value which is inconsistent with the currently visualized time in QGIS.


  • description was changed from Add support for WMS with time support to Add WMS layer.

http://docs.geoserver.org/latest/en/user/services/wms/time.html

http://mapserver.org/ogc/wms_time.html to Add support for WMS with time support to Add WMS layer.

http://docs.geoserver.org/latest/en/user/services/wms/time.html

http://mapserver.org/ogc/wms_time.html

@qgib
Copy link
Contributor Author

qgib commented Feb 28, 2018

Author Name: Nicolas Boisteault (@nboisteault)


Issue still exists in QGIS 3.0.
Tests can be made with this http://sampleserver6.arcgisonline.com/arcgis/services/MultiDimensional_Sample/MapServer/WMSServer?request=GetCapabilities&service=WMS

@qgib qgib added Feature Request Data Provider Related to specific vector, raster or mesh data providers labels May 25, 2019
@qgib qgib added this to the Future Release - Nice to have milestone May 25, 2019
@alexbruy
Copy link
Contributor

alexbruy commented May 1, 2020

Probably can be closed now as this functionality was added to master recently.

@alexbruy alexbruy added the Feedback Waiting on the submitter for answers label May 1, 2020
@alexbruy alexbruy closed this as completed Aug 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Data Provider Related to specific vector, raster or mesh data providers Feature Request Feedback Waiting on the submitter for answers
Projects
None yet
Development

No branches or pull requests

2 participants