aboutsummaryrefslogtreecommitdiffstats
path: root/webmap-import
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2024-06-16 16:28:14 +0200
committerGuilhem Moulin <guilhem@fripost.org>2024-06-16 16:28:33 +0200
commit8cd8da2a39cfe55b7a580fde1ed7a83fe35d3c53 (patch)
tree6f2024d2ff9fd662caa7178a7fbfb19c6e811ea1 /webmap-import
parent1f617031fdf2c4d7499c6ad7b0e3314cd9e20c9c (diff)
webmap-import: Rename ‘fields’ list/dict to ‘field-map’.
Diffstat (limited to 'webmap-import')
-rwxr-xr-xwebmap-import6
1 files changed, 3 insertions, 3 deletions
diff --git a/webmap-import b/webmap-import
index 1cf9def..57ef4b0 100755
--- a/webmap-import
+++ b/webmap-import
@@ -731,7 +731,7 @@ def setOutputFieldMap(defn, sources):
for source in sources:
src = source['source']['path']
- fieldMap2 = source['import'].get('fields', None)
+ fieldMap2 = source['import'].get('field-map', None)
if fieldMap2 is None:
fieldMap2 = {}
else:
@@ -745,7 +745,7 @@ def setOutputFieldMap(defn, sources):
raise Exception(f'Ouput layer has no field named "{ofld}"')
fieldMap2[ifld] = i
- source['import']['fields'] = fieldMap2
+ source['import']['field-map'] = fieldMap2
return fieldMap
@@ -914,7 +914,7 @@ def importSource2(lyr_dst, path, args={}, basedir=None, extent=None):
n = defn.GetFieldCount()
fieldMap = [-1] * n
- fields = args['fields']
+ fields = args['field-map']
fieldSet = set()
for i in range(n):