-#!/usr/bin/php -Cq
<?php
-require_once(dirname(dirname(__FILE__)).'/settings/settings.php');
require_once(CONST_BasePath.'/lib/init-cmd.php');
ini_set('memory_limit', '800M');
| coasters = 12
| water_rides = 2
| owner = [[Six Flags]]
-| general_manager =
+| general_manager =
| homepage = [http://www.sixflags.com/parks/greatadventure/ Six Flags Great Adventure]
}}
EOD;
$a = array();
$a[] = 'test';
- $oDB &= getDB();
+ $oDB = new Nominatim\DB();
+ $oDB->connect();
if ($aCMDResult['drop-tables'])
{
}
if (isset($aCMDResult['parse-wikipedia'])) {
- $oDB =& getDB();
+ $oDB = new Nominatim\DB();
+ $oDB->connect();
+
$sSQL = 'select page_title from content where page_namespace = 0 and page_id %10 = ';
$sSQL .= $aCMDResult['parse-wikipedia'];
- $sSQL .= ' and (page_content ilike \'%{{Coord%\' or (page_content ilike \'%lat%\' and page_content ilike \'%lon%\'))'
+ $sSQL .= ' and (page_content ilike \'%{{Coord%\' or (page_content ilike \'%lat%\' and page_content ilike \'%lon%\'))';
$aArticleNames = $oDB->getCol($sSQL);
/* $aArticleNames = $oDB->getCol($sSQL = 'select page_title from content where page_namespace = 0
and (page_content ilike \'%{{Coord%\' or (page_content ilike \'%lat%\'
if (isset($aCMDResult['link'])) {
- $oDB =& getDB();
+ $oDB = new Nominatim\DB();
+ $oDB->connect();
+
$aWikiArticles = $oDB->getAll("select * from wikipedia_article where language = 'en' and lat is not null and osm_type is null and totalcount < 31 order by importance desc limit 200000");
// If you point this script at production OSM you will be blocked