From fda794e9741df6a15969ca1335284f3426dd317b Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Fri, 29 Sep 2023 00:05:05 +0200 Subject: Use Swedish in file and layer names. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This matches Lantmäteriet's Topografi 10/50/…. --- gis-observation-map | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gis-observation-map b/gis-observation-map index 11f4473..91abd1e 100755 --- a/gis-observation-map +++ b/gis-observation-map @@ -144,7 +144,7 @@ if args.project_home is not None and args.project_name is not None: raise Exception('Invalid CRS') if args.observation_file is None: - args.observation_file = Path('observations') + args.observation_file = Path('fynd') elif args.observation_file is not None: projectInstance = None @@ -438,7 +438,7 @@ def getObservations(taxonLists, taxonRedlistCategories, searchFilter): if obs['type'] == 'FeatureCollection' and 'features' in obs.keys() and type(obs['features']) == list: print(f'{len(obs["features"])} observations found', file=sys.stderr) if 'name' not in obs.keys() or obs['name'] is None: - obs['name'] = 'Observations' + obs['name'] = 'Fynd' 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