|
@@ -698,11 +698,12 @@ if(isset($_GET['all'])){ //{{{
|
|
|
$node_class['ok']=0;
|
|
|
$node_class['cor']=0;
|
|
|
$node_class['bad']=0;
|
|
|
+ $node_class['ign']=0;
|
|
|
|
|
|
echo "<table>";
|
|
|
echo '<tr><th width="7%">node ID</th><th width="11%">node coord</th><th width="12%">node ref</th><th>node tags</th><th>images</th></tr>'."\n";
|
|
|
|
|
|
- $query="SELECT nodeid, need_ref, ref, ST_AsText(geom) AS geom, img, tags FROM hicheck.analyze_cache";
|
|
|
+ $query="SELECT nodeid, need_ref, class, ref, ST_AsText(geom) AS geom, img, tags FROM hicheck.analyze_cache";
|
|
|
$res = pg_query($db, $query);
|
|
|
$total = pg_num_rows($res);
|
|
|
while ($row = pg_fetch_object($res)) {
|
|
@@ -716,6 +717,9 @@ if(isset($_GET['all'])){ //{{{
|
|
|
$node_class['cor']++; echo ' class="cor"';
|
|
|
}
|
|
|
} else {
|
|
|
+ if($row->class == 'ign') {
|
|
|
+ $node_class['ign']++; echo ' class="ign"';
|
|
|
+ }
|
|
|
if($row->need_ref == 'f' || $row->ref == "") {
|
|
|
$node_class['bad']++; echo ' class="bad"';
|
|
|
}
|
|
@@ -748,6 +752,7 @@ if(isset($_GET['all'])){ //{{{
|
|
|
.', <span class="ok">OK: '.$node_class['ok'].'</span>'
|
|
|
.', <span class="cor">have photo but no ref: '.$node_class['cor'].'</span>'
|
|
|
.', <span class="bad">missing photo and ref: '.$node_class['bad'].'</span>'
|
|
|
+ .', <span class="ign">ignored OSM nodes: '.$node_class['ign'].'</span>'
|
|
|
.', have ref but no photo: '.($total - $node_class['ok'] - $node_class['cor'] - $node_class['bad'])
|
|
|
.")</p>\n";
|
|
|
|