How can I use geoalchemy with elixir autoload tables?

Posted by Dan Ellis on Stack Overflow See other posts from Stack Overflow or by Dan Ellis
Published on 2010-03-13T06:06:48Z Indexed on 2010/03/13 6:15 UTC
Read the original article Hit count: 384

I'm using geoalchemy and autoloaded tables, but I'd like to use Elixir, because it has a nicer query syntax. Does anyone know how to get them to work together? I did get it working with this code -- http://pastie.textmate.org/private/y3biyvosuejkrtxbpdv1a -- but that still gives the ugly warning about not recognising the geometry column when the table is reflected.

Ideally, what I'd like to do is to get SQLAlchemy's own table reflection to recognise the geometry columns. How would I plumb them together?

© Stack Overflow or respective owner

Related posts about python

Related posts about sqlalchemy