mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
use the new country data files
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -105,9 +105,9 @@
|
|||||||
}
|
}
|
||||||
pgsqlRunScriptFile(CONST_Path_Postgresql_Postgis.'/postgis.sql');
|
pgsqlRunScriptFile(CONST_Path_Postgresql_Postgis.'/postgis.sql');
|
||||||
pgsqlRunScriptFile(CONST_Path_Postgresql_Postgis.'/spatial_ref_sys.sql');
|
pgsqlRunScriptFile(CONST_Path_Postgresql_Postgis.'/spatial_ref_sys.sql');
|
||||||
pgsqlRunScriptFile(CONST_BasePath.'/data/country_name.sql');
|
pgsqlRunDropAndRestore(CONST_BasePath.'/data/country_name.sql.bin');
|
||||||
pgsqlRunScriptFile(CONST_BasePath.'/data/country_naturalearthdata.sql');
|
pgsqlRunScriptFile(CONST_BasePath.'/data/country_naturalearthdata.sql');
|
||||||
pgsqlRunScriptFile(CONST_BasePath.'/data/country_osm_grid.sql');
|
pgsqlRunDropAndRestore(CONST_BasePath.'/data/country_osm_grid.sql.bin');
|
||||||
pgsqlRunScriptFile(CONST_BasePath.'/data/gb_postcode.sql');
|
pgsqlRunScriptFile(CONST_BasePath.'/data/gb_postcode.sql');
|
||||||
pgsqlRunScriptFile(CONST_BasePath.'/data/us_statecounty.sql');
|
pgsqlRunScriptFile(CONST_BasePath.'/data/us_statecounty.sql');
|
||||||
pgsqlRunScriptFile(CONST_BasePath.'/data/us_state.sql');
|
pgsqlRunScriptFile(CONST_BasePath.'/data/us_state.sql');
|
||||||
@@ -441,6 +441,7 @@
|
|||||||
if (isset($aCMDResult['index-output'])) $sOutputFile = ' -F '.$aCMDResult['index-output'];
|
if (isset($aCMDResult['index-output'])) $sOutputFile = ' -F '.$aCMDResult['index-output'];
|
||||||
$sBaseCmd = CONST_BasePath.'/nominatim/nominatim -i -d '.$aDSNInfo['database'].' -t '.$iInstances.$sOutputFile;
|
$sBaseCmd = CONST_BasePath.'/nominatim/nominatim -i -d '.$aDSNInfo['database'].' -t '.$iInstances.$sOutputFile;
|
||||||
passthru($sBaseCmd.' -R 4');
|
passthru($sBaseCmd.' -R 4');
|
||||||
|
var_dump($sBaseCmd.' -r 15 -R 15');
|
||||||
if (!$aCMDResult['index-noanalyse']) pgsqlRunScript('ANALYSE');
|
if (!$aCMDResult['index-noanalyse']) pgsqlRunScript('ANALYSE');
|
||||||
passthru($sBaseCmd.' -r 5 -R 25');
|
passthru($sBaseCmd.' -r 5 -R 25');
|
||||||
if (!$aCMDResult['index-noanalyse']) pgsqlRunScript('ANALYSE');
|
if (!$aCMDResult['index-noanalyse']) pgsqlRunScript('ANALYSE');
|
||||||
|
|||||||
Reference in New Issue
Block a user