aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2023-09-27 18:43:44 +0200
committerGuilhem Moulin <guilhem@fripost.org>2023-09-27 18:43:44 +0200
commitc63ccbb5153f49714cf3cfb5a2dccde814ed357b (patch)
tree96c91aa0073d9d8ae86f0d25920e790b294ab6af
parente71199db931894a32c855554c1410b4305c18926 (diff)
Print number of observations found to stderr.
-rwxr-xr-xgis-observation-map1
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):