X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/15a1666f8a1e19c338015fccd502be6cfd5c24df..213bf7d19d0e99355954bfacfe0833695f770151:/lib/setup_functions.php diff --git a/lib/setup_functions.php b/lib/setup_functions.php index 5aa5919b..dab6a8e7 100755 --- a/lib/setup_functions.php +++ b/lib/setup_functions.php @@ -14,3 +14,19 @@ function checkInFile($sOSMFile) fail('osm-file "' . $aCMDResult['osm-file'] . '" not readable'); } } + +function getOsm2pgsqlBinary() +{ + return getSetting('OSM2PGSQL_BINARY', CONST_Default_Osm2pgsql); +} + +function getImportStyle() +{ + $sStyle = getSetting('IMPORT_STYLE'); + + if (in_array($sStyle, array('admin', 'street', 'address', 'full', 'extratags'))) { + return CONST_DataDir.'/settings/import-'.$sStyle.'.style'; + } + + return $sStyle; +}