Skip to content

Commit

Permalink
added placetype population and file verification echo
Browse files Browse the repository at this point in the history
  • Loading branch information
twbell committed Oct 16, 2010
1 parent b0d158b commit ad10054
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion import/import.php
Expand Up @@ -23,14 +23,16 @@
set_time_limit(0); //takes a while
error_reporting(E_ERROR); //runtime error reporting
require_once ('class.geoimport.php');
$importEngine = new geoimport;
$importEngine = new geoimport;

//check files
foreach ($files as $file){
if (!file_exists($file)){
echo "Cannot find file ".$file;
exit;
}
}
echo "Files Verified\n";
//create database
echo "Creating Data Structure\n";
if (!$importEngine->createDatabase()){exit;}
Expand All @@ -42,6 +44,7 @@
if (!$importEngine->importAliases($files['aliases'])){exit;}
//optimize data
if (!$importEngine->populatePlaces()){exit;}
if (!$importEngine->addPlaceTypeCodes()){exit;}
if (!$importEngine->populatePlaceNames()){exit;}
if (!$importEngine->populateAdjacencies()){exit;}
if (!$importEngine->populateParents()){exit;}
Expand Down

0 comments on commit ad10054

Please sign in to comment.