Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7e136f4022 | |||
| 1393491fb7 |
@@ -201,10 +201,10 @@ class GeoJsonValidator:
|
|||||||
Returns:
|
Returns:
|
||||||
|
|
||||||
"""
|
"""
|
||||||
features = self._input_geojson.get("features", [])
|
features = self._input_geojson.get("features", None)
|
||||||
|
|
||||||
is_input_geojson_empty = len(self._input_geojson) == 0
|
is_input_geojson_empty = len(self._input_geojson) == 0
|
||||||
no_features_in_input_found = not features
|
no_features_in_input_found = features is None
|
||||||
|
|
||||||
if not is_input_geojson_empty and no_features_in_input_found:
|
if not is_input_geojson_empty and no_features_in_input_found:
|
||||||
# check if _input_geojson is a feature itself
|
# check if _input_geojson is a feature itself
|
||||||
|
|||||||
Reference in New Issue
Block a user