isogeo / isogeo-plugin-qgis

Isogeo plugin for QGIS
http://help.isogeo.com/qgis/
GNU General Public License v3.0
16 stars 5 forks source link

Gestion des images (WMS) trop lourdes #344

Closed jgrosmaire closed 3 years ago

jgrosmaire commented 3 years ago

Gestion des images (WMS) trop lourdes

Environnement

Reproduire

  1. Lancer QGIS
  2. Ouvrir le plugin Isogeo via le menu/via l'icône
  3. Filtrer selon les WMS
  4. Essaye d'afficher la couche Bâtiments de _ENVTEST - WMS - 1.3.0 - QGISServer - 2

Comportement observé

Rien ne s'affiche (pas d'erreur non plus) alors que la couche est ajoutable manuellement.

Requêter la couche avec les informations renseignées dans QGIS (https://demo.lizmap.com/lizmap/index.php/lizmap/service/?repository=demo&project=lampadaires&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&layers=bati&crs=EPSG:2154&format=image/png) donne l'erreur suivante : image

Extrait des logs

2021-02-01 15:54:48,425 || DEBUG || limitations_checker - 40 || check || Checking data access conditions and limitation
2021-02-01 15:54:49,398 || INFO || add_layer - 360 || adding || Adding a layer from those parameters :['WMS', {'_id': '900af14f408b4dae9b438b5955a2c05d', 'id': 'bati', 'mimeTypes': [], 'titles': [{'value': 'Bâtiments'}]}, {'formatVersion': '1.3.0', 'path': 'https://demo.lizmap.com/lizmap/index.php/lizmap/service/?repository=demo&project=lampadaires'}]
2021-02-01 15:54:49,398 || DEBUG || geo_service - 462 || build_wms_url || *=====* DEBUG ADD FROM WMS : wms_dict --> {'base_url': 'https://demo.lizmap.com/lizmap/index.php/lizmap/service/?repository=demo&project=lampadaires&', 'getCap_url': 'https://demo.lizmap.com/lizmap/index.php/lizmap/service/?repository=demo&project=lampadaires&request=GetCapabilities&service=WMS', 'reachable': 1, 'WMS': <owslib.map.wms130.WebMapService_1_3_0 object at 0x00000208F1DD2E80>, 'typenames': ['bati', 'lampadaires', 'Ponts', 'parcs', 'La Seine'], 'version': '1.3.0', 'operations': ['GetCapabilities', 'GetMap', 'GetFeatureInfo', 'GetLegendGraphic', 'DescribeLayer', 'GetStyles'], 'formatOptions': ['image/jpeg', 'image/png', 'image/png', 'image/png', 'image/png', 'application/dxf'], 'GetMap_url': 'https://demo.lizmap.com/lizmap/index.php/lizmap/service/?repository=demo&project=lampadaires', 'GetMap_isAvailable': 1}
2021-02-01 15:54:49,398 || INFO || geo_service - 488 || build_wms_url || GetMap available
2021-02-01 15:54:49,399 || DEBUG || geo_service - 130 || choose_appropriate_srs || It's a SRS match! With map canvas: EPSG:2154
2021-02-01 15:54:49,540 || DEBUG || add_layer - 252 || add_from_service || WMS layer added without specifying the data provider: https://demo.lizmap.com/lizmap/index.php/lizmap/service/?repository=demo&project=lampadaires&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&layers=bati&crs=EPSG:2154&format=image/png&styles=
2021-02-01 15:54:49,540 || DEBUG || metadata_sync - 28 || basic_sync || Filling Bâtiments layer's propertie
2021-02-01 15:54:49,540 || DEBUG || add_layer - 398 || adding || Not supported 'layer_info' format causes this error : list index out of range

Comportement attendu

La couche s'affiche : image

jgrosmaire commented 3 years ago

En fait le problème ne vient sûrement pas de la taille puisque : https://cartotheque.smavd.org/index.php/lizmap/service/?repository=administratif&project=02_dpe_dpf&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&layers=Bassin%20versant%20de%20la%20Durance&crs=EPSG:4326&format=image/png&transparent=true (couche Bassin de la Durance donnée ENV_TEST - WMS - 1.3.0 - QGISServer - 2) renvoie la même erreur mais la couche s'affiche ...