a.binder 9 anos atrás
pai
commit
67cd36b151
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      SE/dev/php-cli/biale_put_PE_to_mysql.php

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

@@ -127,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)
-		   if( $Path_Point_val['X'] and  $Path_Point_val['Y']) DB::getPDO()->query($sql_Path_Point_val);
+		   if( strlen($Path_Point_val['X'])>1 and   strlen($Path_Point_val['Y'])>1 ) DB::getPDO()->query($sql_Path_Point_val);
 		    //else echo "#296 path nie wygenerowalo sie !! dla ".$ID_Way." i pkt ".$pkt_A." , ".$pkt_B." \n";
 		}