Skip to content

Commit 38d8430

Browse files
justb4Patrick Nolltomkralidis
authored
Replace #469 add count param to WFS Probe to fix merge conflict (#487)
* Extending the WFS-Probe request to handle the count parameter. max_count added to the PARAM_DEFS with a default of 1000. * set maxfeature instead of count parameter, to be compatible with WFS v1.1.0. * set default value for maxfeatures to 5. * set max_count to required:False and insert max_count in resources.json for one probe for test purposes. * Fix a typo. Added max_count to fixtures.json and resources.json * add PDF support for docs * #469 add WFS count to Probe with fixing merge conflicts * upgrade GitHub Action to use Ubuntu 24.04 Python 3.10 * upgrade GitHub Action to use Ubuntu 24.04 with Python 3.10.12 * Fix Paver build - upgrade Leaflet and its CDN * Fix Paver build - upgrade Leaflet and its CDN - Flake8 trap.. --------- Co-authored-by: Patrick Noll <[email protected]> Co-authored-by: Tom Kralidis <[email protected]>
1 parent 98aeaf8 commit 38d8430

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

GeoHealthCheck/plugins/probe/wfs.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class WfsGetFeatureBbox(Probe):
2727
xsi:schemaLocation="http://www.opengis.net/wfs
2828
http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"
2929
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
30-
<wfs:Query typeName="{type_name}" srsName="{srs}"
30+
<wfs:Query typeName="{type_name}" srsName="{srs}" maxFeatures="{max_count}"
3131
xmlns:{type_ns_prefix}="{type_ns_uri}">
3232
<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">
3333
<ogc:BBOX>
@@ -77,6 +77,14 @@ class WfsGetFeatureBbox(Probe):
7777
'required': True,
7878
'range': None
7979
},
80+
'max_count': {
81+
'type': 'string',
82+
'description': 'Maximum amount of features to select',
83+
'default': '5',
84+
'value': '5',
85+
'required': True,
86+
'range': None
87+
},
8088
'bbox': {
8189
'type': 'bbox',
8290
'description': 'The tile image extension',

tests/data/fixtures.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@
166166
"type_ns_prefix": "bag",
167167
"type_ns_uri": "http://bag.geonovum.nl",
168168
"srs": "EPSG:28992",
169+
"max_count": "1",
169170
"bbox": ["180635", "455870", "180961", "456050"]
170171
}
171172
},
@@ -177,6 +178,7 @@
177178
"type_ns_prefix": "bag",
178179
"type_ns_uri": "http://bag.geonovum.nl",
179180
"srs": "EPSG:28992",
181+
"max_count": "1",
180182
"bbox": ["180635", "455870", "180961", "456050"]
181183
}
182184
},

0 commit comments

Comments
 (0)