From a4f2e6a893d125eef553a25c9687f536ce357b90 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Wed, 14 Feb 2024 16:07:27 +0100 Subject: [PATCH] do not send outdated parameters to osm2pgsql flex --- nominatim/tools/exec_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nominatim/tools/exec_utils.py b/nominatim/tools/exec_utils.py index c742e3e0..db89c389 100644 --- a/nominatim/tools/exec_utils.py +++ b/nominatim/tools/exec_utils.py @@ -31,7 +31,7 @@ def run_osm2pgsql(options: Mapping[str, Any]) -> None: """ env = get_pg_env(options['dsn']) cmd = [str(options['osm2pgsql']), - '--hstore', '--latlon', '--slim', + '--slim', '--log-progress', 'true', '--number-processes', '1' if options['append'] else str(options['threads']), '--cache', str(options['osm2pgsql_cache']), @@ -43,7 +43,7 @@ def run_osm2pgsql(options: Mapping[str, Any]) -> None: os.environ.get('LUAPATH', ';'))) cmd.extend(('--output', 'flex')) else: - cmd.extend(('--output', 'gazetteer')) + cmd.extend(('--output', 'gazetteer', '--hstore', '--latlon')) cmd.append('--append' if options['append'] else '--create') -- 2.45.1