Skip to content
Snippets Groups Projects

Draft: Resolve "[Epic] Changes to database-lib for the 25.01 release"

5 files
+ 109
0
Compare changes
  • Side-by-side
  • Inline

Files

+ 25
0
@@ -84,6 +84,31 @@ class AbstractDatabase(abc.ABC):
field.
"""
@staticmethod
@abc.abstractmethod
def bbox_intersect_call(
table_1: str, geometry_column_1: str, table_2: str, geometry_column_2: str
):
"""
Abstract function to create the SQL query part for intersecting the bounding boxes of
two tables.
Args:
table_1 (str):
The name of the first table.
geometry_column_1 (str):
The geometry column name of the first table.
table_2 (str):
The name of the second table.
geometry_column_2 (str):
The geometry column name of the second table.
Returns:
str:
Part of an SQL query to be used to clip bounding boxes of two tables, usually
to decrease the query time.
"""
@abc.abstractmethod
def order_by_latitude(self, table_name: str) -> str:
"""
Loading