From 17833f47adcb9813400aa4dfe7f4783a15047ee5 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Sun, 1 Oct 2023 20:00:21 +0200 Subject: Observations: Derive layer name from path. --- gis-observation-map | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gis-observation-map b/gis-observation-map index c9de278..5c1c94b 100755 --- a/gis-observation-map +++ b/gis-observation-map @@ -504,7 +504,7 @@ def getObservations(taxonLists, taxonRedlistCategories, searchFilter): if args.observation_format is not None and drv.name.lower() != args.observation_format.lower(): print(f'WARN: overwriting observation file format to {drv.name}', file=sys.stderr) - layername = 'fynd' + layername = path.stem.lower() obs['name'] = layername if drv.name == geojson_drv.name: -- cgit v1.2.3