]> git.openstreetmap.org Git - nominatim.git/blobdiff - utils/setup.php
Add osm2pgsql flat node support via settings.php
[nominatim.git] / utils / setup.php
index 1c61a56b31f23c558465744e2797534afada8b23..c0bf0a39e994165b35c84b51ee2117f31fe8d153 100755 (executable)
                        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'];