Skip to content

Commit

Permalink
#1 Use osm2pgsql flat-nodes parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
mattesCZ committed Nov 13, 2016
1 parent f60f59f commit 50646aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osm_data_processing/updatemap.py
Expand Up @@ -31,8 +31,8 @@ def download_file(source, data_dir):


def load_db(osm2pgsql, database, filename, style, cache, host, port):
load_command = ('%s -s -d %s %s -S %s -C %s -H %s -P %s --number-processes 8 '
% (osm2pgsql, database, filename, style, cache, host, port))
load_command = ('%s -s -d %s %s -S %s -C %s -H %s -P %s --number-processes 8 --flat-nodes %s '
% (osm2pgsql, database, filename, style, cache, host, port, os.path.join(settings.OSM_DATADIR, 'flat-nodes.cache')))
return os.system(load_command)


Expand Down

0 comments on commit 50646aa

Please sign in to comment.