I'm having difficulty with (I think) the ORM for geoalchemy2. My model is defined as follows:
class Location(Model):
point = Column(Geometry('POINT', dimension=3, srid=4326))
I later insert as follows:
location = Location(point=WKTElement('POINT(65.567 32.95 1156.7)', 4326))
session.add(location)
session.commit()
This gives the following error:
Geometry has Z dimension but column does not.