aboutsummaryrefslogtreecommitdiffstats
path: root/webmap-import
diff options
context:
space:
mode:
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):