{"action":"created","issue":{"url":"https://api.github.com/repos/anitagraser/TimeManager/issues/149","labels_url":"https://api.github.com/repos/anitagraser/TimeManager/issues/149/labels{/name}","comments_url":"https://api.github.com/repos/anitagraser/TimeManager/issues/149/comments","events_url":"https://api.github.com/repos/anitagraser/TimeManager/issues/149/events","html_url":"https://github.com/anitagraser/TimeManager/issues/149","id":113122587,"number":149,"title":"Error with WMS-T layer","user":{"login":"samtux","id":545152,"avatar_url":"https://avatars.githubusercontent.com/u/545152?v=3","gravatar_id":"","url":"https://api.github.com/users/samtux","html_url":"https://github.com/samtux","followers_url":"https://api.github.com/users/samtux/followers","following_url":"https://api.github.com/users/samtux/following{/other_user}","gists_url":"https://api.github.com/users/samtux/gists{/gist_id}","starred_url":"https://api.github.com/users/samtux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samtux/subscriptions","organizations_url":"https://api.github.com/users/samtux/orgs","repos_url":"https://api.github.com/users/samtux/repos","events_url":"https://api.github.com/users/samtux/events{/privacy}","received_events_url":"https://api.github.com/users/samtux/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-24T00:36:30Z","updated_at":"2015-10-24T16:34:58Z","closed_at":null,"body":"I get the next error with WMS-T layer:\r\n\r\nhttp://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r-t.cgi?LAYERS=nexrad-n0r-wmst&TRANSPARENT=TRUE&FORMAT=image/png&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG:4326&BBOX=-126,24,-66,50&WIDTH=600&HEIGHT=500&TIME=2015-10-20T00:00:00Z/2015-10-24T00:00:00\r\n\r\n```python\r\nHa ocurrido un error mientras se ejecutaba el código de Python:\r\n\r\nTraceback (most recent call last):\r\n  File \"/home/samtux/.qgis2/python/plugins/timemanager/timemanagercontrol.py\", line 308, in playAnimation\r\n    haveVisibleFeatures = self.timeLayerManager.haveVisibleFeatures()\r\n  File \"/home/samtux/.qgis2/python/plugins/timemanager/timelayermanager.py\", line 283, in haveVisibleFeatures\r\n    total_features += layer.featureCount()\r\nAttributeError: 'QgsRasterLayer' object has no attribute 'featureCount'\r\n\r\nVersión de Python:\r\n2.7.10 (default, Sep  7 2015, 13:51:49) \r\n[GCC 5.2.0]\r\n\r\nVersión de QGIS:\r\n2.10.1-Pisa Pisa, eaf06be\r\n\r\nRuta de Python: ['/home/samtux/.qgis2/python/plugins/processing', '/home/samtux/.qgis2/python/plugins/processing_workflow', '/home/samtux/.qgis2/python/plugins/esstoolkit/external', '/usr/share/qgis/python', u'/home/samtux/.qgis2/python', u'/home/samtux/.qgis2/python/plugins', '/usr/share/qgis/python/plugins', '/opt/grass/etc/python', '/home/samtux', '/usr/lib/python27.zip', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/lib/python2.7/site-packages', '/usr/lib/python2.7/site-packages/gst-0.10', '/usr/lib/python2.7/site-packages/gtk-2.0', '/usr/lib/python2.7/site-packages/wx-3.0-gtk2', u'/home/samtux/.qgis2//python', '.', '/home/samtux/.qgis2/python/plugins/OpenAerialMap', '/home/samtux/.qgis2/python/plugins/OpenAerialMap/ext_libs/boto-2.38.0', '/home/samtux/.qgis2/python/plugins/OpenAerialMap/ext_libs/filechunkio-1.6', '/home/samtux/.qgis2/python/plugins/OpenAerialMap/ext_libs/requests-2.7.0', '/usr/share/qgis/python/plugins/fTools/tools']\r\n```"},"comment":{"url":"https://api.github.com/repos/anitagraser/TimeManager/issues/comments/150831846","html_url":"https://github.com/anitagraser/TimeManager/issues/149#issuecomment-150831846","issue_url":"https://api.github.com/repos/anitagraser/TimeManager/issues/149","id":150831846,"user":{"login":"samtux","id":545152,"avatar_url":"https://avatars.githubusercontent.com/u/545152?v=3","gravatar_id":"","url":"https://api.github.com/users/samtux","html_url":"https://github.com/samtux","followers_url":"https://api.github.com/users/samtux/followers","following_url":"https://api.github.com/users/samtux/following{/other_user}","gists_url":"https://api.github.com/users/samtux/gists{/gist_id}","starred_url":"https://api.github.com/users/samtux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samtux/subscriptions","organizations_url":"https://api.github.com/users/samtux/orgs","repos_url":"https://api.github.com/users/samtux/repos","events_url":"https://api.github.com/users/samtux/events{/privacy}","received_events_url":"https://api.github.com/users/samtux/received_events","type":"User","site_admin":false},"created_at":"2015-10-24T16:34:58Z","updated_at":"2015-10-24T16:34:58Z","body":"@carolinux the error persists, I believe that it is necessary to define a conditional to identify the layer raster line 283 of timelayermanager.py, this would be like:\r\n\r\n```python\r\nif self.getActiveRasters () is False:\r\n    for layer in all_layers:\r\n        total_features += layer.featureCount)\r\n```\r\nAlthough I do not know if this change affects the animation of vector layers.\r\n\r\nHere the output of the animation using this great tool.\r\n\r\n![Timemanager](http://i.imgur.com/NxHKDUR.gif)\r\n\r\n\r\n\r\n\r\n"}}