mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-11 13:24:07 +00:00
polygons.php: print total number of broken polygons
This commit is contained in:
@@ -13,8 +13,10 @@
|
|||||||
$sClass = false;
|
$sClass = false;
|
||||||
if (isset($_GET['class'])) $sClass = $_GET['class'];
|
if (isset($_GET['class'])) $sClass = $_GET['class'];
|
||||||
|
|
||||||
|
$iTotalBroken = (int) $oDB->getOne('select count(*) from import_polygon_error');
|
||||||
|
|
||||||
$aPolygons = array();
|
$aPolygons = array();
|
||||||
while(!sizeof($aPolygons))
|
while($iTotalBroken && !sizeof($aPolygons))
|
||||||
{
|
{
|
||||||
$sSQL = 'select osm_type as "type",osm_id as "id",class as "key",type as "value",name->\'name\' as "name",';
|
$sSQL = 'select osm_type as "type",osm_id as "id",class as "key",type as "value",name->\'name\' as "name",';
|
||||||
$sSQL .= 'country_code as "country",errormessage as "error message",updated';
|
$sSQL .= 'country_code as "country",errormessage as "error message",updated';
|
||||||
@@ -84,6 +86,7 @@ table td {
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
echo "<p>Total number of broken polygons: $iTotalBroken</p>";
|
||||||
echo "<table>";
|
echo "<table>";
|
||||||
echo "<tr>";
|
echo "<tr>";
|
||||||
//var_dump($aPolygons[0]);
|
//var_dump($aPolygons[0]);
|
||||||
|
|||||||
Reference in New Issue
Block a user