mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
add experimental option for enabling forward dependencies
This commit is contained in:
@@ -117,7 +117,6 @@ def run_osm2pgsql(options: Mapping[str, Any]) -> None:
|
||||
env = get_pg_env(options['dsn'])
|
||||
cmd = [str(options['osm2pgsql']),
|
||||
'--hstore', '--latlon', '--slim',
|
||||
'--with-forward-dependencies', 'false',
|
||||
'--log-progress', 'true',
|
||||
'--number-processes', str(options['threads']),
|
||||
'--cache', str(options['osm2pgsql_cache']),
|
||||
@@ -131,14 +130,14 @@ def run_osm2pgsql(options: Mapping[str, Any]) -> None:
|
||||
else:
|
||||
cmd.extend(('--output', 'gazetteer'))
|
||||
|
||||
if options['append']:
|
||||
cmd.append('--append')
|
||||
else:
|
||||
cmd.append('--create')
|
||||
cmd.append('--append' if options['append'] else '--create')
|
||||
|
||||
if options['flatnode_file']:
|
||||
cmd.extend(('--flat-nodes', options['flatnode_file']))
|
||||
|
||||
if not options.get('forward_dependencies', False):
|
||||
cmd.extend(('--with-forward-dependencies', 'false'))
|
||||
|
||||
for key, param in (('slim_data', '--tablespace-slim-data'),
|
||||
('slim_index', '--tablespace-slim-index'),
|
||||
('main_data', '--tablespace-main-data'),
|
||||
|
||||
Reference in New Issue
Block a user