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

couches liés- WMS (linkLayer) avec OGCfilter, l'échelle affichage n'est pas considérée pour l'apel du getMap #696

Closed
josee666 opened this issue Nov 24, 2021 · 1 comment

Comments

@josee666
Copy link

Avec 2 couches liées qui ont des échelles d'affichage différentes.

L'échelle n'est pas considéré et IGO call la requete de getMap sur les 2 couches meme si l'une n'est pas visible a cette échelle.

résultat = mapServer renvoie HHTP Error-504 sur les couches provinciale de milions de polygon lors d'un apel avec un filtre a tres petite echelle Québec

ex requeste retournant un 504 getMap sur une couche barré a 175 000 qu'on query a echelle du quebec:

https://pregeoegl.msp.gouv.qc.ca/ws/mffpecofor.fcgi?_t=51aa0327&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=ca_interv_fores_close_scale&DPI=96&MAP_RESOLUTION=96&FORMAT_OPTIONS=dpi%3A96&CRS=EPSG%3A3857&STYLES=&WIDTH=909&HEIGHT=841&BBOX=-8759680.044279942%2C5619380.274728154%2C-7647979.904900339%2C6647916.927333486&FILTER=(annee_date1897-01-01T05:00:00.000Z2021-11-24T05:00:59.999Z)


*Comportement souhaité: IGO ne call pas le getMap sur un layer s'il n'est pas a echelle visible


config exemple 2 couches liés
{
"title": "Épidemies, chablis et verglas 𝗬",
"id": "linkPertuAutre",
"visible": false,
"linkedLayers": {
"linkId": "linkPertuAutre",
"links": [{
"bidirectionnal": false,
"syncedDelete": true,
"linkedIds": ["empreintePertuAutre"],
"properties": ["visible"]
}]
},
"metadata": {
"extern": true
},
"sourceOptions": {
"type": "wms",
"optionsFromCapabilities": true,
"crossOrigin": "anonymous",
"queryFormat": "htmlgml2",
"queryHtmlTarget": "iframe",
"queryable": true,
"url": "/ws/mffpecofor.fcgi",
"params": {
"layers": "ca_pertu_autre_close_scale",
"version": "1.3.0"
},
"sourceFields": [{
"name": "annee_date",
"alias": "Date",
"allowedOperatorsType": "time"
}],

        "timeFilterable": false,
        "ogcFilters": {
            "enabled": true,
            "editable": false,
            "allowedOperatorsType": "basic",
            "pushButtons": {
                "groups": [
                  {"title": "Group 1 Title","name": "1","ids": ["id1"]}
                ],
                "bundles": [
                  {
                    "id": "id1",
                    "logical": "Or",
                    "title": "Type perturb",
                    "selectors": [
                    {
                        "title": "chabli tot",
                        "color": "0,137,123",
                        "filters": {
                            "operator": "PropertyIsEqualTo",
                            "propertyName": "symbologie",
                            "expression": "CHT"
                        }
                    },
                      {
                        "title": "epidemie sev",
                        "color": "0,137,123",
                        "filters": {
                          "operator": "PropertyIsEqualTo",
                          "propertyName": "symbologie",
                          "expression": "ES"
                        }
                      }
                    ]
                  }
                ]
            },
            "filters":
                {
                "operator": "During",
                "propertyName": "annee_date",
                "begin": "1922-01-01T00:00:00-05:00",
                "end": "today",
                "restrictedToStep": false,
                "calendarModeYear": true
                } 
        },
    "stepDate": "P1Y"
    }
},
{
    "title": "Empreinte épidemie",
    "showInLayerList": false,
    "linkedLayers": {
        "linkId": "empreintePertuAutre"
    },
    "sourceOptions": {
        "type": "wms",
         "optionsFromCapabilities": true,
        "id": "empreintePertuAutre",
        "queryable": false,
        "url": "/ws/mffpecofor.fcgi",
        "params": {
            "layers": "ca_pertu_autre_fp",
            "version": "1.3.0"
        }   
    }
  }
@josee666
Copy link
Author

Comportement en problème non reproduit. Avec couche liées comme dans exemple IGO fait le call uniquement sur la bonne couche.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants