From 09af89ac28aaaace3e2cd9e091fb96b2bde99c8a Mon Sep 17 00:00:00 2001 From: Danijel Schorlemmer Date: Sun, 4 Sep 2022 22:03:17 +0200 Subject: [PATCH] Introduce new member variable `tile_view` --- exposurelib/database.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/exposurelib/database.py b/exposurelib/database.py index 6a3dae1..dd5fe7e 100644 --- a/exposurelib/database.py +++ b/exposurelib/database.py @@ -45,6 +45,11 @@ class AbstractExposure(AbstractDatabase, ABC): def tile_table(self): return None + @property + @abstractmethod + def tile_view(self): + return None + @property @abstractmethod def geometry_field(self): @@ -247,6 +252,7 @@ class SpatiaLiteExposure(SpatiaLiteDatabase, AbstractExposure): # Database table and field names specific to the SpatiaLite database tile_table = "Tile" + tile_view = "Tile" geometry_field = "geom" boundary_table = "Boundary" boundary_id_field = "id" @@ -1678,7 +1684,8 @@ class PostGISExposure(PostGISDatabase, AbstractExposure): """ # Database table and field names specific to the PostGIS database - tile_table = "tile_best_estimate" + tile_table = "obm_tiles" + tile_view = "tile_best_estimate" geometry_field = "geometry" boundary_table = "Boundaries" boundary_id_field = "boundary_id" -- GitLab