mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-12-25 14:02:12 +03:00
fix indentation
This commit is contained in:
parent
1f2a262ee0
commit
87519de8ab
@ -17,7 +17,7 @@
|
|||||||
@define('CONST_Osm2pgsql_Binary', CONST_BasePath.'/osm2pgsql/osm2pgsql');
|
@define('CONST_Osm2pgsql_Binary', CONST_BasePath.'/osm2pgsql/osm2pgsql');
|
||||||
@define('CONST_Osmosis_Binary', '/usr/bin/osmosis');
|
@define('CONST_Osmosis_Binary', '/usr/bin/osmosis');
|
||||||
|
|
||||||
// osm2pgsql settings
|
// osm2pgsql settings
|
||||||
@define('CONST_Osm2pgsql_Flatnode_File', null);
|
@define('CONST_Osm2pgsql_Flatnode_File', null);
|
||||||
|
|
||||||
// Replication settings
|
// Replication settings
|
||||||
|
@ -155,10 +155,10 @@
|
|||||||
fail("osm2pgsql not found in '$osm2pgsql'");
|
fail("osm2pgsql not found in '$osm2pgsql'");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!is_null(CONST_Osm2pgsql_Flatnode_File))
|
if (!is_null(CONST_Osm2pgsql_Flatnode_File))
|
||||||
{
|
{
|
||||||
$osm2pgsql .= ' --flat-nodes '.CONST_Osm2pgsql_Flatnode_File;
|
$osm2pgsql .= ' --flat-nodes '.CONST_Osm2pgsql_Flatnode_File;
|
||||||
}
|
}
|
||||||
$osm2pgsql .= ' -lsc -O gazetteer --hstore';
|
$osm2pgsql .= ' -lsc -O gazetteer --hstore';
|
||||||
$osm2pgsql .= ' -C '.$iCacheMemory;
|
$osm2pgsql .= ' -C '.$iCacheMemory;
|
||||||
$osm2pgsql .= ' -P '.$aDSNInfo['port'];
|
$osm2pgsql .= ' -P '.$aDSNInfo['port'];
|
||||||
|
@ -115,10 +115,10 @@
|
|||||||
{
|
{
|
||||||
// Import the file
|
// Import the file
|
||||||
$sCMD = CONST_Osm2pgsql_Binary.' -klas -C 2000 -O gazetteer -d '.$aDSNInfo['database'].' '.$sNextFile;
|
$sCMD = CONST_Osm2pgsql_Binary.' -klas -C 2000 -O gazetteer -d '.$aDSNInfo['database'].' '.$sNextFile;
|
||||||
if (!is_null(CONST_Osm2pgsql_Flatnode_File))
|
if (!is_null(CONST_Osm2pgsql_Flatnode_File))
|
||||||
{
|
{
|
||||||
$sCMD .= ' --flat-nodes '.CONST_Osm2pgsql_Flatnode_File;
|
$sCMD .= ' --flat-nodes '.CONST_Osm2pgsql_Flatnode_File;
|
||||||
}
|
}
|
||||||
echo $sCMD."\n";
|
echo $sCMD."\n";
|
||||||
exec($sCMD, $sJunk, $iErrorLevel);
|
exec($sCMD, $sJunk, $iErrorLevel);
|
||||||
|
|
||||||
@ -230,10 +230,10 @@
|
|||||||
|
|
||||||
// import generated change file
|
// import generated change file
|
||||||
$sCMD = CONST_Osm2pgsql_Binary.' -klas -C 2000 -O gazetteer -d '.$aDSNInfo['database'].' '.$sTemporaryFile;
|
$sCMD = CONST_Osm2pgsql_Binary.' -klas -C 2000 -O gazetteer -d '.$aDSNInfo['database'].' '.$sTemporaryFile;
|
||||||
if (!is_null(CONST_Osm2pgsql_Flatnode_File))
|
if (!is_null(CONST_Osm2pgsql_Flatnode_File))
|
||||||
{
|
{
|
||||||
$sCMD .= ' --flat-nodes '.CONST_Osm2pgsql_Flatnode_File;
|
$sCMD .= ' --flat-nodes '.CONST_Osm2pgsql_Flatnode_File;
|
||||||
}
|
}
|
||||||
echo $sCMD."\n";
|
echo $sCMD."\n";
|
||||||
exec($sCMD, $sJunk, $iErrorLevel);
|
exec($sCMD, $sJunk, $iErrorLevel);
|
||||||
if ($iErrorLevel)
|
if ($iErrorLevel)
|
||||||
@ -363,10 +363,10 @@
|
|||||||
$sCMDDownload = $sOsmosisCMD.' --read-replication-interval workingDirectory='.$sOsmosisConfigDirectory.' --simplify-change --write-xml-change '.$sImportFile;
|
$sCMDDownload = $sOsmosisCMD.' --read-replication-interval workingDirectory='.$sOsmosisConfigDirectory.' --simplify-change --write-xml-change '.$sImportFile;
|
||||||
$sCMDCheckReplicationLag = $sOsmosisCMD.' -q --read-replication-lag workingDirectory='.$sOsmosisConfigDirectory;
|
$sCMDCheckReplicationLag = $sOsmosisCMD.' -q --read-replication-lag workingDirectory='.$sOsmosisConfigDirectory;
|
||||||
$sCMDImport = CONST_Osm2pgsql_Binary.' -klas -C 2000 -O gazetteer -d '.$aDSNInfo['database'].' '.$sImportFile;
|
$sCMDImport = CONST_Osm2pgsql_Binary.' -klas -C 2000 -O gazetteer -d '.$aDSNInfo['database'].' '.$sImportFile;
|
||||||
if (!is_null(CONST_Osm2pgsql_Flatnode_File))
|
if (!is_null(CONST_Osm2pgsql_Flatnode_File))
|
||||||
{
|
{
|
||||||
$sCMDImport .= ' --flat-nodes '.CONST_Osm2pgsql_Flatnode_File;
|
$sCMDImport .= ' --flat-nodes '.CONST_Osm2pgsql_Flatnode_File;
|
||||||
}
|
}
|
||||||
$sCMDIndex = $sBasePath.'/nominatim/nominatim -i -d '.$aDSNInfo['database'].' -t '.$aResult['index-instances'];
|
$sCMDIndex = $sBasePath.'/nominatim/nominatim -i -d '.$aDSNInfo['database'].' -t '.$aResult['index-instances'];
|
||||||
if (!$aResult['no-npi']) {
|
if (!$aResult['no-npi']) {
|
||||||
$sCMDIndex .= '-F ';
|
$sCMDIndex .= '-F ';
|
||||||
|
Loading…
Reference in New Issue
Block a user