2 require_once(dirname(dirname(__FILE__)).'/lib/init-website.php');
3 require_once(CONST_BasePath.'/lib/log.php');
5 $sOutputFormat = 'html';
6 ini_set('memory_limit', '200M');
10 $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";
11 $aPolygons = $oDB->getAll($sSQL);
12 if (PEAR::isError($aPolygons))
14 failInternalError("Could not get list of deleted OSM elements.", $sSQL, $aPolygons);
17 //var_dump($aPolygons);
22 <meta charset="utf-8"/>
23 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
25 <title>Nominatim Deleted Data</title>
27 <meta name="description" content="List of OSM data that has been deleted" lang="en-US" />
32 <style type="text/css">
38 border-collapse: collapse;
39 background-color: white;
47 border-left-color: #ddd;
48 border-right-color: #ddd;
49 background-color: #eee;
50 -moz-border-radius: 0px 0px 0px 0px;
57 border-left-color: #ddd;
58 border-right-color: #ddd;
59 background-color: white;
60 -moz-border-radius: 0px 0px 0px 0px;
64 <p>Objects in this table have been deleted in OSM but are still in the Nominatim database.</p>
69 //var_dump($aPolygons[0]);
70 foreach($aPolygons[0] as $sCol => $sVal)
72 echo "<th>".$sCol."</th>";
75 foreach($aPolygons as $aRow)
78 foreach($aRow as $sCol => $sVal)
83 $sOSMType = ($aRow['osm_type'] == 'N'?'node':($aRow['osm_type'] == 'W'?'way':($aRow['osm_type'] == 'R'?'relation':'')));
84 echo '<td><a href="http://www.openstreetmap.org/browse/'.$sOSMType.'/'.$sVal.'" target="_new">'.$sVal.'</a></td>';
87 echo '<td><a href="'.CONST_Website_BaseURL.'details?place_id='.$sVal.'">'.$sVal.'</a></td>';
90 echo "<td>".($sVal?$sVal:' ')."</td>";