diff --git a/data-ingest/ingest b/data-ingest/ingest index e2d3082..e78fa28 100755 --- a/data-ingest/ingest +++ b/data-ingest/ingest @@ -15,7 +15,7 @@ clean_tmp () { } trap clean_tmp EXIT -echo "[+] Ingesting IPE ata." +echo "[+] Ingesting IPE data." echo " The following files will be ingested." echo "" ipeFiles=$(find "${fullIpeDirPath}" -name '*.csv') @@ -53,7 +53,13 @@ UPDATE ipe SET ImmeubleGeoPoint = 2154) ,4326); EOF +sqlite3 "${fullDbPath}" < "${tmpSql}" +echo "[+] Creating Rtree index (spatial index). We're almost done." +cat > "${tmpSql}" <