From c63ccbb5153f49714cf3cfb5a2dccde814ed357b Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Wed, 27 Sep 2023 18:43:44 +0200 Subject: Print number of observations found to stderr. --- gis-observation-map | 1 + 1 file changed, 1 insertion(+) 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): -- cgit v1.2.3