2 require_once(dirname(dirname(__FILE__)).'/settings/settings.php');
3 require_once(CONST_BasePath.'/lib/init-website.php');
4 require_once(CONST_BasePath.'/lib/log.php');
5 require_once(CONST_BasePath.'/lib/output.php');
7 $sOutputFormat = 'html';
8 ini_set('memory_limit', '200M');
12 $sSQL = "select placex.place_id, calculated_country_code as country_code, name->'name' as name, i.* from placex, import_polygon_delete i where placex.osm_id = i.osm_id and placex.osm_type = i.osm_type and placex.class = i.class and placex.type = i.type";
13 $aPolygons = chksql($oDB->getAll($sSQL),
14 "Could not get list of deleted OSM elements.");
25 <meta charset="utf-8"/>
26 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
28 <title>Nominatim Deleted Data</title>
30 <meta name="description" content="List of OSM data that has been deleted" lang="en-US" />
35 <style type="text/css">
41 border-collapse: collapse;
42 background-color: white;
50 border-left-color: #ddd;
51 border-right-color: #ddd;
52 background-color: #eee;
53 -moz-border-radius: 0px 0px 0px 0px;
60 border-left-color: #ddd;
61 border-right-color: #ddd;
62 background-color: white;
63 -moz-border-radius: 0px 0px 0px 0px;
67 <p>Objects in this table have been deleted in OSM but are still in the Nominatim database.</p>
71 if (!$aPolygons) exit;
73 //var_dump($aPolygons[0]);
74 foreach($aPolygons[0] as $sCol => $sVal)
76 echo "<th>".$sCol."</th>";
79 foreach($aPolygons as $aRow)
82 foreach($aRow as $sCol => $sVal)
87 echo '<td>'.osmLink($aRow).'</td>';
90 echo '<td>'.detailsLink($aRow).'</td>';
93 echo "<td>".($sVal?$sVal:' ')."</td>";