Add osm2pgsql flat node support via settings.php

This commit is contained in:
Frederik Ramm
2013-05-16 09:03:16 +02:00
parent 7ca4259866
commit 1f2a262ee0
3 changed files with 20 additions and 0 deletions

View File

@@ -154,6 +154,11 @@
echo "Please download and build osm2pgsql.\nIf it is already installed, check the path in your local settings (settings/local.php) file.\n";
fail("osm2pgsql not found in '$osm2pgsql'");
}
if (!is_null(CONST_Osm2pgsql_Flatnode_File))
{
$osm2pgsql .= ' --flat-nodes '.CONST_Osm2pgsql_Flatnode_File;
}
$osm2pgsql .= ' -lsc -O gazetteer --hstore';
$osm2pgsql .= ' -C '.$iCacheMemory;
$osm2pgsql .= ' -P '.$aDSNInfo['port'];