From 8cd8da2a39cfe55b7a580fde1ed7a83fe35d3c53 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Sun, 16 Jun 2024 16:28:14 +0200 Subject: =?UTF-8?q?webmap-import:=20Rename=20=E2=80=98fields=E2=80=99=20li?= =?UTF-8?q?st/dict=20to=20=E2=80=98field-map=E2=80=99.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webmap-import | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'webmap-import') 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): -- cgit v1.2.3