diff --git a/exposurelib/database.py b/exposurelib/database.py index 6a3dae1d9a6accccf6568fdc5c19aa85146803e8..dd5fe7e6ed49a65be4975418ac6f7b7da308a19d 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"