aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2023-10-01 20:00:21 +0200
committerGuilhem Moulin <guilhem@fripost.org>2023-10-01 20:00:21 +0200
commit17833f47adcb9813400aa4dfe7f4783a15047ee5 (patch)
tree45a99fbb3895b50c2d56bc63a15a05eee78b76af
parent1d5ef7ed4c63c22ccceed392539ba785e85928cd (diff)
Observations: Derive layer name from path.
-rwxr-xr-xgis-observation-map2
1 files changed, 1 insertions, 1 deletions
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: