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

Update load_vector_data.sh

parent e4771cfc
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,7 @@ for file in "$dir"/*; do
if [ "$first_file" = true ]; then
echo "Processing first file: $file"
# create table wioth first file
ogr2ogr -f MySQL MySQL:"$DB_NAME,host=$HOST,user=$USER,password=$PASSWORD" "$file" -nln footprints -update -overwrite -lco engine=InnoDB
ogr2ogr -f MySQL MySQL:$DB_NAME,host=$HOST,user=$USER,password=$PASSWORD "$file" -nln footprints -update -overwrite -lco engine=InnoDB
# partition the table
mariadb -h "$HOST" -u "$USER" -p"$PASSWORD" < inputs/sql/partition_db.sql
# go on with updating counters
......@@ -49,7 +49,7 @@ for file in "$dir"/*; do
else
# Start processing the file in the background
echo "Processing file in parallel: $file"
ogr2ogr -f MySQL MySQL:"$DB_NAME,host=$HOST,user=$USER,password=$PASSWORD" "$file" -nln footprints -update -append &
ogr2ogr -f MySQL MySQL:$DB_NAME,host=$HOST,user=$USER,password=$PASSWORD "$file" -nln footprints -update -append &
pids+=($!)
((processed_files++))
((remaining_files--))
......
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