From 35635ebf16aebfe3113806acca0de274679118fe Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Sun, 16 Jun 2024 16:31:51 +0200 Subject: =?UTF-8?q?webmap-import:=20Use=20the=20identity=20mapping=20if=20?= =?UTF-8?q?no=20=E2=80=98field-map=E2=80=99=20is=20specified.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The previous default map was [-1] * n i.e., all source fields were ignored. --- webmap-import | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'webmap-import') diff --git a/webmap-import b/webmap-import index 57ef4b0..e9ae302 100755 --- a/webmap-import +++ b/webmap-import @@ -733,7 +733,7 @@ def setOutputFieldMap(defn, sources): src = source['source']['path'] fieldMap2 = source['import'].get('field-map', None) if fieldMap2 is None: - fieldMap2 = {} + fieldMap2 = fieldMap else: if isinstance(fieldMap2, list): # convert list to identity dictionary -- cgit v1.2.3