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

feat(*) Wfs add param queryFormatAsWms + Workspace new query param #995

Merged
merged 13 commits into from
Mar 24, 2022

Conversation

josee666
Copy link

@josee666 josee666 commented Feb 22, 2022

*In IGO2 assemblage, need to be test with:
pr: infra-geo-ouverte/igo2#748

What is the current behavior?
infra-geo-ouverte/igo2#634

What is the new behavior?
for layer with WMS and WFS, new param
"queryFormatAsWms": true
add in paramsWFS
When is true on query in wfs resolution the getFeatureInfo is done in wms in same format

workspace new param query options:
"workspace": {
"queryOptions": {
"mapQueryOnOpenTab": false,
"tabQuery": false
}

when is false, no query panel info is presente to user when click in attribut table or in map when wks table is open

config exemple to test in assemblage
{
"title": "FEU WMS-WFS",
"visible": true,
"workspace": {
"enabled": true,
"maxResolution": 10,
"queryOptions": {
"mapQueryOnOpenTab": false,
"tabQuery": false
}
},
"metadata": {
"extern": true
},
"sourceOptions": {
"crossOrigin": "anonymous",
"queryable": true,
"queryFormat": "html",
"queryHtmlTarget": "iframe",
"type": "wms",
"optionsFromCapabilities": true,
"url": "/ws/mffpecofor.fcgi",
"params": {
"layers": "ca_feux_close_scale",
"version": "1.3.0"
},
"urlWfs": "/ws/mffpecofor.fcgi",
"paramsWFS": {
"featureTypes": "ca_feux_close_scale",
"fieldNameGeometry": "the_geom",
"maxFeatures": 3000,
"version": "2.0.0",
"queryFormatAsWms": true
}
}
},
{
"title": "Photo(WFS-WMS) queryWMS, Workspace:NoQuery",
"visible": true,
"id": "test",
"workspace": {
"enabled": true,
"maxResolution": 300,
"queryOptions": {
"mapQueryOnOpenTab": false,
"tabQuery": false
}
},
"sourceOptions": {
"queryable": true,
"queryTitle": "test",
"crossOrigin": "anonymous",
"queryFormat": "htmlgml2",
"queryHtmlTarget": "iframe",
"type": "wms",
"optionsFromCapabilities": true,
"url": "/ws/mffpecofor.fcgi",
"params": {
"layers": "nord_photo_oblique",
"version": "1.3.0"
},
"urlWfs": "/ws/mffpecofor.fcgi",
"paramsWFS": {
"featureTypes": "nord_photo_oblique",
"maxFeatures": 1000,
"version": "2.0.0",
"queryFormatAsWms": false
},
"sourceFields": [
{"name": "LATITUDE", "alias": "lat"},
{"name": "LONGITUDE", "alias": "lon"},
{"name": "NOM_PHOTO", "alias": "nom"}
]
}
}

Does this PR introduce a breaking change? (check one with "x")

  • Yes
  • [ x] No

@josee666 josee666 changed the title feat(*) Wfs add param query format as wms feat(*) Wfs add param queryFormatAsWms + Workspace new query param Feb 28, 2022
@PhilippeLafreniere18 PhilippeLafreniere18 merged commit 0f3e9af into next Mar 24, 2022
@pelord pelord deleted the WFSqueryFormatAsWMS branch March 25, 2022 01:26
cbourget pushed a commit that referenced this pull request Mar 21, 2023
)

* WFSqueryFormatAsWMS

* lint

* lint

* param optionel ajout ?

* newParam WKS query behavior

* lint

* remove anlaytic

* this.layer for workspace

* add geowksQueryOptions

* retrait variable dans queryService

* queryAsWms deplace QueryableDataSourceOptions

* remove import WFSDataSource
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

Successfully merging this pull request may close these issues.

3 participants