Broken polygons

Total number of broken polygons: . Also available in JSON format.

'; //var_dump($aPolygons[0]); foreach (array_keys($aPolygons[0]) as $sCol) { echo ''; } echo ''; echo ''; $aSeen = array(); foreach ($aPolygons as $aRow) { if (isset($aSeen[$aRow['osm_type'].$aRow['osm_id']])) continue; $aSeen[$aRow['osm_type'].$aRow['osm_id']] = 1; echo ''; $sOSMType = formatOSMType($aRow['osm_type']); foreach ($aRow as $sCol => $sVal) { switch ($sCol) { case 'errormessage': if (preg_match('/Self-intersection\\[([0-9.\\-]+) ([0-9.\\-]+)\\]/', $sVal, $aMatch)) { $aRow['lat'] = $aMatch[2]; $aRow['lon'] = $aMatch[1]; $sUrl = sprintf('https://www.openstreetmap.org/?lat=%f&lon=%f&zoom=18&layers=M&%s=%d', $aRow['lat'], $aRow['lon'], $sOSMType, $aRow['osm_id']); echo ''; } else { echo ''; } break; case 'osm_id': echo ''; break; default: echo ''; break; } } $sJosmUrl = 'http://localhost:8111/import?url=https://www.openstreetmap.org/api/0.6/'.$sOSMType.'/'.$aRow['osm_id'].'/full'; echo ''; echo ''; } echo '
'.$sCol.' 
'.($sVal?$sVal:' ').''.($sVal?$sVal:' ').''.osmLink(array('osm_type' => $aRow['osm_type'], 'osm_id' => $aRow['osm_id'])).''.($sVal?$sVal:' ').'josm
'; } ?>