2018-08-31 22:31:38 +03:00
|
|
|
<?php
|
2022-01-03 18:23:58 +03:00
|
|
|
/**
|
|
|
|
* SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
*
|
|
|
|
* This file is part of Nominatim. (https://nominatim.org)
|
|
|
|
*
|
|
|
|
* Copyright (C) 2022 by the Nominatim developer community.
|
|
|
|
* For a full list of authors see the git log.
|
|
|
|
*/
|
2018-08-31 22:31:38 +03:00
|
|
|
|
2020-12-15 17:37:31 +03:00
|
|
|
function getOsm2pgsqlBinary()
|
|
|
|
{
|
2021-01-14 11:30:23 +03:00
|
|
|
$sBinary = getSetting('OSM2PGSQL_BINARY');
|
|
|
|
|
|
|
|
return $sBinary ? $sBinary : CONST_Default_Osm2pgsql;
|
2020-12-15 17:37:31 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
function getImportStyle()
|
|
|
|
{
|
|
|
|
$sStyle = getSetting('IMPORT_STYLE');
|
|
|
|
|
|
|
|
if (in_array($sStyle, array('admin', 'street', 'address', 'full', 'extratags'))) {
|
2021-02-09 20:45:45 +03:00
|
|
|
return CONST_ConfigDir.'/import-'.$sStyle.'.style';
|
2020-12-15 17:37:31 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
return $sStyle;
|
|
|
|
}
|