On Thu, Jan 2, 2014 at 10:51 PM, Rick Otten <
rottenw...@gmail.com> wrote:
> I'm running into the same issue (SQLAlchemy 0.8.4, GeoAlchemy 0.2.2, PostGIS
> 2.1, PostgreSQL 9.3) - and also looking for a workaround.
>
> select ST_AsBinary(some_point) doesn't work.
> [sqlalchemy.exc.ProgrammingError: (ProgrammingError) function
> st_asbinary(point) does not exist
> HINT: No function matches the given name and argument types. You might
> need to add explicit type casts.]
>
> select ST_AsBinary(some_point::geometry) does work. (when run by hand
> against the database)
>
> I'm trying to select an entire (wide) row back from my table (which has a
> POINT column in it), and am getting the broken SQL.
>
> dbSession.query(my_table).filter("some criteria")
>
> Is there a trick to this? I've scoured the interwebs with Google, but
> nothing obvious has jumped out as a solution short of specifying each column
> individually (either initially, or as needed)
Could you please show more code? A complete test case would be ideal. Thanks.