Skip to content
Snippets Groups Projects
Commit 22013bfe authored by Riccardo Boero's avatar Riccardo Boero :innocent:
Browse files

Added waiting for first generation of layer in DB.

parent 1ab4df55
No related branches found
No related tags found
No related merge requests found
......@@ -36,6 +36,7 @@ for file in "$dir"/*; do
if [ $counter -eq 0 ]; then
# Process the first file
ogr2ogr -f MySQL MySQL:"$DB_NAME,host=$DB_HOST,user=$DB_USER,password=$DB_PASS" "$file" -nln footprints -update -overwrite -lco engine=Aria &
wait
else
# Process other files in parallel
ogr2ogr -f MySQL MySQL:"$DB_NAME,host=$DB_HOST,user=$DB_USER,password=$DB_PASS" "$file" -nln footprints -update -append &
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment