mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
do not send outdated parameters to osm2pgsql flex
This commit is contained in:
@@ -31,7 +31,7 @@ def run_osm2pgsql(options: Mapping[str, Any]) -> None:
|
|||||||
"""
|
"""
|
||||||
env = get_pg_env(options['dsn'])
|
env = get_pg_env(options['dsn'])
|
||||||
cmd = [str(options['osm2pgsql']),
|
cmd = [str(options['osm2pgsql']),
|
||||||
'--hstore', '--latlon', '--slim',
|
'--slim',
|
||||||
'--log-progress', 'true',
|
'--log-progress', 'true',
|
||||||
'--number-processes', '1' if options['append'] else str(options['threads']),
|
'--number-processes', '1' if options['append'] else str(options['threads']),
|
||||||
'--cache', str(options['osm2pgsql_cache']),
|
'--cache', str(options['osm2pgsql_cache']),
|
||||||
@@ -43,7 +43,7 @@ def run_osm2pgsql(options: Mapping[str, Any]) -> None:
|
|||||||
os.environ.get('LUAPATH', ';')))
|
os.environ.get('LUAPATH', ';')))
|
||||||
cmd.extend(('--output', 'flex'))
|
cmd.extend(('--output', 'flex'))
|
||||||
else:
|
else:
|
||||||
cmd.extend(('--output', 'gazetteer'))
|
cmd.extend(('--output', 'gazetteer', '--hstore', '--latlon'))
|
||||||
|
|
||||||
cmd.append('--append' if options['append'] else '--create')
|
cmd.append('--append' if options['append'] else '--create')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user