From 2890656b8a9745b3387edef381d5231a38a21d8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Baylac-Jacqu=C3=A9?= Date: Mon, 21 Feb 2022 19:00:11 +0100 Subject: [PATCH] data-ingest: Create a spatial index on the building geodata --- data-ingest/ingest | 8 +++++++- notes.org | 16 ++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) 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}" <