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');
6 ini_set('memory_limit', '200M');
8 $sOutputFormat = 'html';
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), "Could not get list of deleted OSM elements.");
23 <meta charset="utf-8"/>
24 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
26 <title>Nominatim Deleted Data</title>
28 <meta name="description" content="List of OSM data that has been deleted" lang="en-US" />
33 <style type="text/css">
39 border-collapse: collapse;
40 background-color: white;
48 border-left-color: #ddd;
49 border-right-color: #ddd;
50 background-color: #eee;
51 -moz-border-radius: 0px 0px 0px 0px;
58 border-left-color: #ddd;
59 border-right-color: #ddd;
60 background-color: white;
61 -moz-border-radius: 0px 0px 0px 0px;
65 <p>Objects in this table have been deleted in OSM but are still in the Nominatim database.</p>
69 if (!$aPolygons) exit;
71 //var_dump($aPolygons[0]);
72 foreach ($aPolygons[0] as $sCol => $sVal) {
73 echo "<th>".$sCol."</th>";
76 foreach ($aPolygons as $aRow) {
78 foreach ($aRow as $sCol => $sVal) {
81 echo '<td>'.osmLink($aRow).'</td>';
84 echo '<td>'.detailsLink($aRow).'</td>';
87 echo "<td>".($sVal?$sVal:' ')."</td>";