Cast Point to Geography
This commit is contained in:
parent
d8cc6c7480
commit
82671959bb
|
@ -110,7 +110,9 @@ def make_envelope_around_point(
|
||||||
"""Make an envelope around a point, the distance parameter specifies the size."""
|
"""Make an envelope around a point, the distance parameter specifies the size."""
|
||||||
conn = database.session.connection()
|
conn = database.session.connection()
|
||||||
|
|
||||||
p = sqlalchemy.func.ST_MakePoint(lon, lat)
|
p = sqlalchemy.sql.expression.cast(
|
||||||
|
sqlalchemy.func.ST_MakePoint(lon, lat), geoalchemy2.Geography
|
||||||
|
)
|
||||||
|
|
||||||
s = select(
|
s = select(
|
||||||
[
|
[
|
||||||
|
|
Loading…
Reference in a new issue