3 function checkInFile($sOSMFile)
5 if (!isset($sOSMFile)) {
6 fail('missing --osm-file for data import');
9 if (!file_exists($sOSMFile)) {
10 fail('the path supplied to --osm-file does not exist');
13 if (!is_readable($sOSMFile)) {
14 fail('osm-file "' . $aCMDResult['osm-file'] . '" not readable');
18 function getOsm2pgsqlBinary()
20 $sBinary = getSetting('OSM2PGSQL_BINARY');
22 $sBinary = CONST_InstallDir.'/osm2pgsql/osm2pgsql';
28 function getImportStyle()
30 $sStyle = getSetting('IMPORT_STYLE');
32 if (in_array($sStyle, array('admin', 'street', 'address', 'full', 'extratags'))) {
33 return CONST_DataDir.'/settings/import-'.$sStyle.'.style';