add python implementation of reverse

This adds an additional layer parameter and slightly changes the
queries to do more efficient lookups for large area features.
This commit is contained in:
Sarah Hoffmann
2023-03-22 00:07:17 +01:00
parent ebcf8c2b6b
commit 41da298b18
6 changed files with 650 additions and 7 deletions

View File

@@ -53,7 +53,7 @@ else:
# SQLAlchemy introduced generic types in version 2.0 making typing
# inclompatiple with older versions. Add wrappers here so we don't have
# incompatible with older versions. Add wrappers here so we don't have
# to litter the code with bare-string types.
if TYPE_CHECKING:
@@ -66,3 +66,5 @@ SaSelect: TypeAlias = 'sa.Select[Any]'
SaRow: TypeAlias = 'sa.Row[Any]'
SaColumn: TypeAlias = 'sa.Column[Any]'
SaLabel: TypeAlias = 'sa.Label[Any]'
SaTable: TypeAlias = 'sa.Table[Any]'
SaClause: TypeAlias = 'sa.ClauseElement[Any]'