Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Following my previous PR (Replace olx with ol.olx #130 )
This PR add an ui to the ogc filter previously merged into IGO2-lib
The UI can be used on any WFS source and on WMS (Geoserver and Mapserver 7.2 (not yet released)).
Into the context.json, we cant control the behavior of the component
Option # 1 define if the source is ogcFilterable (based on server's capabilities)
Option # 2 allow to control if user can edit the filter in the UI. The other property allow to define filter that will be loaded into the ui and filter the datasource on initialisation of the layer.
Option # 3 allow to restrict which fields can be used into the UI. An alias can also be defined. No translation for the alias. In some case, the property "values" can be set to controls values exposed into the ui. Only these will be shown. ex: "values" : ['a','b','c'].
For WMS source, a WFS source cand be linked by adding this property to the layer. The wfs source will provide field name and values for the UI.
"wfsSource": { "url": "https://ahocevar.com/geoserver/wms", "featureTypes": "water_areas", "fieldNameGeometry": "the_geom", "maxFeatures": 10000, "version": "1.1.0", "outputFormat": "application/json", "outputFormatDownload": "application/vnd.google-earth.kml+xml" }
Whe way WFS source or WMS source with wfs linked get fields and values:
If service is WFS 2.0.0, then a GetPropertyValue operation is done.
For WFS < 2.0.0, a GetFeature call is made (200 first occurences) . This call is omiting the geometry field. Be carefull, GML do not return geometry field IF this field is not asked in the query. For Geojson outputformat, the geometry is returned by the server. This query can be very heavy for the server OR for the bandwidth.