Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion GeoHealthCheck/plugins/probe/wfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class WfsGetFeatureBbox(Probe):
xsi:schemaLocation="http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<wfs:Query typeName="{type_name}" srsName="{srs}"
<wfs:Query typeName="{type_name}" srsName="{srs}" maxFeatures="{max_count}"
xmlns:{type_ns_prefix}="{type_ns_uri}">
<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">
<ogc:BBOX>
Expand Down Expand Up @@ -77,6 +77,13 @@ class WfsGetFeatureBbox(Probe):
'required': True,
'range': None
},
'max_count': {
'type': 'string',
'description': 'Maximum amount of features to select',
'default': '5',
'required': True,
'range': None
},
'bbox': {
'type': 'bbox',
'description': 'The tile image extension',
Expand Down
2 changes: 2 additions & 0 deletions tests/data/fixtures.json
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@
"type_ns_prefix": "bag",
"type_ns_uri": "http://bag.geonovum.nl",
"srs": "EPSG:28992",
"max_count": "1",
"bbox": ["180635", "455870", "180961", "456050"]
}
},
Expand All @@ -189,6 +190,7 @@
"type_ns_prefix": "bag",
"type_ns_uri": "http://bag.geonovum.nl",
"srs": "EPSG:28992",
"max_count": "1",
"bbox": ["180635", "455870", "180961", "456050"]
}
},
Expand Down
2 changes: 2 additions & 0 deletions tests/data/resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@
"type_ns_prefix": "bag",
"type_ns_uri": "http://bag.geonovum.nl",
"srs": "EPSG:28992",
"max_count": "1",
"bbox": ["180635", "455870", "180961", "456050"]
}
},
Expand All @@ -198,6 +199,7 @@
"type_ns_prefix": "bag",
"type_ns_uri": "http://bag.geonovum.nl",
"srs": "EPSG:28992",
"max_count": "1",
"bbox": ["180635", "455870", "180961", "456050"]
}
},
Expand Down