a.binder 9 년 전
부모
커밋
c5fb339dd4
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      SE/dev/php-cli/biale_put_PE_to_mysql.php

+ 1 - 3
SE/dev/php-cli/biale_put_PE_to_mysql.php

@@ -94,10 +94,8 @@ foreach($edge_paths_with_PE->children() as $child)  {
 	   }
 	  //echo $child->getName() . ": " . " ID_Way: ".$ID_Way. " : ";
 	
-	  
 	   settype($ID_Way, "integer");
 	   //$ID_Way=var_dump($ID_Way);
-	   
 	 //  echo "#88Child:"; print_r($ID_Way);
 	   //$edge_joins_path['ID_Way'][$attrs['ID_Way']]=array();
 	  // $result = $xml->xpath('/a/b/c');
@@ -129,7 +127,7 @@ foreach($edge_paths_with_PE_arr as $ID_Way=>$Path_Point) {
 		     values (ST_GeomFromText('POINT(".$Path_Point_val['X']." ".$Path_Point_val['Y'].")'),'".$ID_Way."'   )   ";
 		    echo "#216Query path ins:: ".$sql_Path_Point_val."  ";
 		    //if(strlen($edge_joins_filled_paths[$ID_Way]['asText'])>2)
-		      DB::getPDO()->query($sql_Path_Point_val);
+		   if( $Path_Point_val['X'] and  $Path_Point_val['Y']) DB::getPDO()->query($sql_Path_Point_val);
 		    //else echo "#296 path nie wygenerowalo sie !! dla ".$ID_Way." i pkt ".$pkt_A." , ".$pkt_B." \n";
 		}