From bee1918be993e1364c55d63725dada7588f91576 Mon Sep 17 00:00:00 2001 From: Tyler Matteo Date: Thu, 21 Mar 2024 18:15:45 -0400 Subject: [PATCH 1/3] Point to nonversioned block centroid table in carto (#1496) --- server/src/project/geometry/geometry.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/project/geometry/geometry.service.ts b/server/src/project/geometry/geometry.service.ts index 9d71b6544..361b63fa6 100644 --- a/server/src/project/geometry/geometry.service.ts +++ b/server/src/project/geometry/geometry.service.ts @@ -18,7 +18,7 @@ const METERS_TO_FEET_FACTOR = 3.28084; const QUERIES = { DTM_BLOCK_CENTROIDS: ` SELECT the_geom, the_geom_webmercator, cartodb_id, concat(borocode, LPAD(block::text, 5, '0')) as block - FROM dtm_block_centroids_v20201106 + FROM dof_dtm_block_centroids `, centroidsFor(blocks) { From af21ed6cc8b782fd34d33272a886bd17eca48a1f Mon Sep 17 00:00:00 2001 From: Tyler Matteo Date: Thu, 21 Mar 2024 18:19:24 -0400 Subject: [PATCH 2/3] Revert "Point to nonversioned block centroid table in carto (#1496)" (#1497) This reverts commit bee1918be993e1364c55d63725dada7588f91576. --- server/src/project/geometry/geometry.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/project/geometry/geometry.service.ts b/server/src/project/geometry/geometry.service.ts index 361b63fa6..9d71b6544 100644 --- a/server/src/project/geometry/geometry.service.ts +++ b/server/src/project/geometry/geometry.service.ts @@ -18,7 +18,7 @@ const METERS_TO_FEET_FACTOR = 3.28084; const QUERIES = { DTM_BLOCK_CENTROIDS: ` SELECT the_geom, the_geom_webmercator, cartodb_id, concat(borocode, LPAD(block::text, 5, '0')) as block - FROM dof_dtm_block_centroids + FROM dtm_block_centroids_v20201106 `, centroidsFor(blocks) { From c5dc10fc350235f8265f961965bfc2214a83468d Mon Sep 17 00:00:00 2001 From: David Hochbaum Date: Wed, 3 Apr 2024 10:39:44 -0400 Subject: [PATCH 3/3] Updated Centroids to query newly created table that removes duplicate BoroBlocks --- server/src/project/geometry/geometry.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/project/geometry/geometry.service.ts b/server/src/project/geometry/geometry.service.ts index 9d71b6544..57d4762e1 100644 --- a/server/src/project/geometry/geometry.service.ts +++ b/server/src/project/geometry/geometry.service.ts @@ -18,7 +18,7 @@ const METERS_TO_FEET_FACTOR = 3.28084; const QUERIES = { DTM_BLOCK_CENTROIDS: ` SELECT the_geom, the_geom_webmercator, cartodb_id, concat(borocode, LPAD(block::text, 5, '0')) as block - FROM dtm_block_centroids_v20201106 + FROM dof_dtm_block_centroids_deduped_by_boroblock `, centroidsFor(blocks) {