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 = $oDB->getAll($sSQL);
14 if (PEAR::isError($aPolygons))
16 failInternalError("Could not get list of deleted OSM elements.", $sSQL, $aPolygons);
19 //var_dump($aPolygons);
24 <meta charset="utf-8"/>
25 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
27 <title>Nominatim Deleted Data</title>
29 <meta name="description" content="List of OSM data that has been deleted" lang="en-US" />
34 <style type="text/css">
40 border-collapse: collapse;
41 background-color: white;
49 border-left-color: #ddd;
50 border-right-color: #ddd;
51 background-color: #eee;
52 -moz-border-radius: 0px 0px 0px 0px;
59 border-left-color: #ddd;
60 border-right-color: #ddd;
61 background-color: white;
62 -moz-border-radius: 0px 0px 0px 0px;
66 <p>Objects in this table have been deleted in OSM but are still in the Nominatim database.</p>
70 if (!$aPolygons) exit;
72 //var_dump($aPolygons[0]);
73 foreach($aPolygons[0] as $sCol => $sVal)
75 echo "<th>".$sCol."</th>";
78 foreach($aPolygons as $aRow)
81 foreach($aRow as $sCol => $sVal)
86 echo '<td>'.osmLink($aRow).'</td>';
89 echo '<td>'.detailsLink($aRow).'</td>';
92 echo "<td>".($sVal?$sVal:' ')."</td>";