Questions tagged [geoalchemy2]

GeoAlchemy 2 is a Python toolkit for working with spatial databases. It is based on the gorgeous SQLAlchemy.

GeoAlchemy 2 is a Python toolkit for working with spatial databases. It is based on the gorgeous SQLAlchemy.

https://github.com/geoalchemy/geoalchemy2

62 questions
0
votes
1 answer

to_shape() fails with ParseException

I have been experimenting with GeoAlchemy2, and I have some trouble with parsing its geom field. I have tried to use the built-in to_shape function on a WKB element: The example reads: lake = Session.query(Lake).get(1) polygon =…
Adam Matan
  • 128,757
  • 147
  • 397
  • 562
0
votes
1 answer

KeyedTuple with a list of related data

I have a couple of simple models that look something like this: class StoreImage(Base): imagepath = Column(Text, nullable=False) store_id = Column(Integer, ForeignKey('store.id'), nullable=False) store = relationship('Store') class…
jmagnusson
  • 5,799
  • 4
  • 43
  • 38
1 2 3 4
5