X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/effd8e12af440586594a18a04beb33abed260d15..f05ea577f42c5ad4a62ff25ec62fbb60c550ee26:/website/polygons.php diff --git a/website/polygons.php b/website/polygons.php index a8abd83b..2e7197ab 100755 --- a/website/polygons.php +++ b/website/polygons.php @@ -17,8 +17,7 @@ $iTotalBroken = (int) chksql($oDB->getOne('select count(*) from import_polygon_error')); $aPolygons = array(); - while($iTotalBroken && !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 .= 'country_code as "country",errormessage as "error message",updated'; $sSQL .= " from import_polygon_error"; @@ -31,8 +30,7 @@ $aPolygons = chksql($oDB->getAll($sSQL)); } - if (CONST_Debug) - { + if (CONST_Debug) { var_dump($aPolygons); exit; } @@ -89,32 +87,25 @@ table td { echo ""; echo ""; //var_dump($aPolygons[0]); - foreach($aPolygons[0] as $sCol => $sVal) - { + foreach ($aPolygons[0] as $sCol => $sVal) { echo ""; } echo ""; echo ""; echo ""; $aSeen = array(); - foreach($aPolygons as $aRow) - { + foreach ($aPolygons as $aRow) { if (isset($aSeen[$aRow['type'].$aRow['id']])) continue; $aSeen[$aRow['type'].$aRow['id']] = 1; echo ""; - foreach($aRow as $sCol => $sVal) - { - switch($sCol) - { + foreach ($aRow as $sCol => $sVal) { + switch ($sCol) { case 'error message': - if (preg_match('/Self-intersection\\[([0-9.\\-]+) ([0-9.\\-]+)\\]/',$sVal,$aMatch)) - { + if (preg_match('/Self-intersection\\[([0-9.\\-]+) ([0-9.\\-]+)\\]/',$sVal,$aMatch)) { $aRow['lat'] = $aMatch[2]; $aRow['lon'] = $aMatch[1]; echo ""; - } - else - { + } else { echo ""; } break; @@ -127,12 +118,9 @@ table td { } } echo ""; - if (isset($aRow['lat'])) - { + if (isset($aRow['lat'])) { echo ""; - } - else - { + } else { echo ""; } echo "";
".$sCol."  
".($sVal?$sVal:' ')."".($sVal?$sVal:' ')."josmP2