On Mon, Sep 9, 2019 at 1:12 PM Eric Reichwaldt
<
eric.re...@gmail.com> wrote:
>
> I just asked the same question before I saw this one (was searching for ST_Buffer...) Where you able to ever figure this out?
Have you tried "cast"?
Example:
from geoalchemy2 import Geography
q = Session.query(Location).filter(
func.ST_DWithin(cast(Location.geom, Geography("POINT", 4326)),
func.ST_GeomFromText("POINT(0 0)", 4326), 10 ) )
--
Eric