|
|
@@ -68,12 +68,12 @@ function check() {
|
|
|
|
|
|
init_sh_check();
|
|
|
|
|
|
-$ways2joins = unserialize(file_get_contents('ways2joins.txt'));
|
|
|
-$joins2ways = unserialize(file_get_contents('joins2ways.txt'));
|
|
|
-$points2joins = unserialize(file_get_contents('points2joins.txt'));
|
|
|
-$joins_asText = unserialize(file_get_contents('joins_asText.txt'));
|
|
|
-$ways_asText = unserialize(file_get_contents('ways_asText.txt'));
|
|
|
-$points_asText = unserialize(file_get_contents('points_asText.txt'));
|
|
|
+$ways2joins = unserialize(file_get_contents('/tmp/save_ways2joins.txt'));
|
|
|
+$joins2ways = unserialize(file_get_contents('/tmp/save_joins2ways.txt'));
|
|
|
+$points2joins = unserialize(file_get_contents('/tmp/save_points2joins.txt'));
|
|
|
+$joins_asText = unserialize(file_get_contents('/tmp/save_joins_asText.txt'));
|
|
|
+$ways_asText = unserialize(file_get_contents('/tmp/save_ways_asText.txt'));
|
|
|
+$points_asText = unserialize(file_get_contents('/tmp/save_points_asText.txt'));
|
|
|
|
|
|
$edge_joins=simplexml_load_file("edge_joins.xml");
|
|
|
$edge_joins->registerXPathNamespace('bp', 'https://procesy5.pl/biale_plamy-schema.xsd');
|
|
|
@@ -238,8 +238,8 @@ foreach($edge_joins_path as $ID_Way=>$Joins_arr) {
|
|
|
$edge_joins_filled_paths[$ID_Way]['distance'] = $distance;
|
|
|
//joins2lineString(findWay($Joins_arr[1],$Joins_arr[2]));
|
|
|
//joins2lineString($res = findWay($joinAB['A'],$joinAB['B']))->asText();
|
|
|
- $sql_insert_path="insert into Rozdzielcza_test_bzyk_paths (the_geom,ID_Way)
|
|
|
- values (ST_GeomFromText('".$edge_joins_filled_paths[$ID_Way]['asText']."'),'".$ID_Way."' ) ";
|
|
|
+ $sql_insert_path="insert into Rozdzielcza_test_bzyk_paths (the_geom,ID_Way, A_RECORD_CREATE_DATE )
|
|
|
+ values (ST_GeomFromText('".$edge_joins_filled_paths[$ID_Way]['asText']."'),'".$ID_Way."' , now() ) ";
|
|
|
echo "#216Query path ins:: ".$sql_insert_path." , distance:".$distance." ";
|
|
|
if(strlen($edge_joins_filled_paths[$ID_Way]['asText'])>2)
|
|
|
DB::getPDO()->query($sql_insert_path);
|