diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2023-09-27 18:43:44 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2023-09-27 18:43:44 +0200 |
commit | c63ccbb5153f49714cf3cfb5a2dccde814ed357b (patch) | |
tree | 96c91aa0073d9d8ae86f0d25920e790b294ab6af | |
parent | e71199db931894a32c855554c1410b4305c18926 (diff) |
Print number of observations found to stderr.
-rwxr-xr-x | gis-observation-map | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gis-observation-map b/gis-observation-map index e2740c7..23ca88e 100755 --- a/gis-observation-map +++ b/gis-observation-map @@ -365,6 +365,7 @@ def getObservations(taxonLists, taxonRedlistCategories, data): print('WARN: GeoJSON output lacks CRS', file=sys.stderr) if obs['type'] == 'FeatureCollection' and 'features' in obs.keys() and type(obs['features']) == list: + print(f'{len(obs["features"])} observations found', file=sys.stderr) for feat in obs['features']: if (type(feat) != dict or 'type' not in feat.keys() or feat['type'] != 'Feature' or 'properties' not in feat.keys() or type(feat['properties']) != dict): |