Skip to content

Commit

Permalink
Merge pull request #28 from govlt/geom-from-ewkb
Browse files Browse the repository at this point in the history
Add missing GeomFromEWKB
  • Loading branch information
vycius authored Jul 16, 2024
2 parents a073978 + 7d74f28 commit 4351b56
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions api/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ class GeomFromGeoJSON(GenericFunction):
inherit_cache = True


class GeomFromEWKB(GenericFunction):
type = geoalchemy2.types.Geometry()
inherit_cache = True


class EWKTGeometry(Geometry):
# We need to override constructor only to set extended to True
def __init__(self, geometry_type: Optional[str] = "GEOMETRY", srid=-1, dimension=2, spatial_index=True,
Expand Down

0 comments on commit 4351b56

Please sign in to comment.