Skip to content

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

Merged
PhilippeLafreniere18 merged 13 commits into
nextfrom
WFSqueryFormatAsWMS
Mar 24, 2022
Merged

feat(*) Wfs add param queryFormatAsWms + Workspace new query param#995
PhilippeLafreniere18 merged 13 commits into
nextfrom
WFSqueryFormatAsWMS

Conversation

@josee666
Copy link
Copy Markdown

@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
Comment thread packages/geo/src/lib/query/shared/query.service.ts Outdated
Comment thread packages/geo/src/lib/workspace/shared/feature-workspace.ts Outdated
Comment thread packages/geo/src/lib/workspace/shared/wfs-workspace.ts Outdated
Comment thread packages/geo/src/lib/layer/shared/layers/layer.interface.ts Outdated
Comment thread packages/geo/src/lib/workspace/shared/wms-workspace.service.ts
Comment thread packages/geo/src/lib/datasource/shared/datasources/wfs-datasource.interface.ts Outdated
Comment thread packages/geo/src/lib/datasource/shared/datasources/wfs-datasource.interface.ts Outdated
Comment thread packages/geo/src/lib/datasource/shared/datasources/wfs-datasource.interface.ts Outdated
Comment thread packages/geo/src/lib/query/shared/query.directive.ts Outdated
Comment thread packages/geo/src/lib/workspace/workspace-updator/workspace-updator.directive.ts Outdated
@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