Skip to content

Commit

Permalink
Fix a typo. Added max_count to fixtures.json and resources.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Noll committed Apr 11, 2024
1 parent a968b10 commit f91cba1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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}" maxfeatures="{max_count}"
<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 @@ -81,7 +81,7 @@ class WfsGetFeatureBbox(Probe):
'type': 'string',
'description': 'Maximum amount of features to select',
'default': '5',
'required': False,
'required': True,
'range': None
},
'bbox': {
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
1 change: 1 addition & 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 Down

0 comments on commit f91cba1

Please sign in to comment.