]> git.openstreetmap.org Git - nominatim.git/commitdiff
fix indentation
authorFrederik Ramm <frederik@remote.org>
Thu, 16 May 2013 07:11:19 +0000 (09:11 +0200)
committerFrederik Ramm <frederik@remote.org>
Thu, 16 May 2013 07:11:19 +0000 (09:11 +0200)
settings/settings.php
utils/setup.php
utils/update.php

index dbd9bf930cc801ccd45287001d4696dcb27ae98e..fc6ee8dedfca2f4fa7f46ad7246121e5e8c4518e 100644 (file)
@@ -17,7 +17,7 @@
        @define('CONST_Osm2pgsql_Binary', CONST_BasePath.'/osm2pgsql/osm2pgsql');
        @define('CONST_Osmosis_Binary', '/usr/bin/osmosis');
 
-    // osm2pgsql settings
+       // osm2pgsql settings
        @define('CONST_Osm2pgsql_Flatnode_File', null);
 
        // Replication settings
index c0bf0a39e994165b35c84b51ee2117f31fe8d153..081efd0de477d6fce0ddc0b145a522d2b5c814aa 100755 (executable)
                        fail("osm2pgsql not found in '$osm2pgsql'");
                }
 
-        if (!is_null(CONST_Osm2pgsql_Flatnode_File))
-        {
-            $osm2pgsql .= ' --flat-nodes '.CONST_Osm2pgsql_Flatnode_File;
-        }
+               if (!is_null(CONST_Osm2pgsql_Flatnode_File))
+               {
+                       $osm2pgsql .= ' --flat-nodes '.CONST_Osm2pgsql_Flatnode_File;
+               }
                $osm2pgsql .= ' -lsc -O gazetteer --hstore';
                $osm2pgsql .= ' -C '.$iCacheMemory;
                $osm2pgsql .= ' -P '.$aDSNInfo['port'];
index edfc53c1e1c8c67f824f2918ba03f232e9244c34..d38de598433d665b14a14217151d55dadea83a16 100755 (executable)
                {
                        // Import the file
                        $sCMD = CONST_Osm2pgsql_Binary.' -klas -C 2000 -O gazetteer -d '.$aDSNInfo['database'].' '.$sNextFile;
-            if (!is_null(CONST_Osm2pgsql_Flatnode_File))
-            {
-                $sCMD .= ' --flat-nodes '.CONST_Osm2pgsql_Flatnode_File;
-            }
+                       if (!is_null(CONST_Osm2pgsql_Flatnode_File))
+                       {
+                               $sCMD .= ' --flat-nodes '.CONST_Osm2pgsql_Flatnode_File;
+                       }
                        echo $sCMD."\n";
                        exec($sCMD, $sJunk, $iErrorLevel);
 
 
                // import generated change file
                $sCMD = CONST_Osm2pgsql_Binary.' -klas -C 2000 -O gazetteer -d '.$aDSNInfo['database'].' '.$sTemporaryFile;
-        if (!is_null(CONST_Osm2pgsql_Flatnode_File))
-        {
-            $sCMD .= ' --flat-nodes '.CONST_Osm2pgsql_Flatnode_File;
-        }
+               if (!is_null(CONST_Osm2pgsql_Flatnode_File))
+               {
+                       $sCMD .= ' --flat-nodes '.CONST_Osm2pgsql_Flatnode_File;
+               }
                echo $sCMD."\n";
                exec($sCMD, $sJunk, $iErrorLevel);
                if ($iErrorLevel)
                $sCMDDownload = $sOsmosisCMD.' --read-replication-interval workingDirectory='.$sOsmosisConfigDirectory.' --simplify-change --write-xml-change '.$sImportFile;
                $sCMDCheckReplicationLag = $sOsmosisCMD.' -q --read-replication-lag workingDirectory='.$sOsmosisConfigDirectory;
                $sCMDImport = CONST_Osm2pgsql_Binary.' -klas -C 2000 -O gazetteer -d '.$aDSNInfo['database'].' '.$sImportFile;
-        if (!is_null(CONST_Osm2pgsql_Flatnode_File))
-        {
-            $sCMDImport .= ' --flat-nodes '.CONST_Osm2pgsql_Flatnode_File;
-        }
+               if (!is_null(CONST_Osm2pgsql_Flatnode_File))
+               {
+                       $sCMDImport .= ' --flat-nodes '.CONST_Osm2pgsql_Flatnode_File;
+               }
                $sCMDIndex = $sBasePath.'/nominatim/nominatim -i -d '.$aDSNInfo['database'].' -t '.$aResult['index-instances'];
                if (!$aResult['no-npi']) {
                        $sCMDIndex .= '-F ';