3D points in geoalkemia2

I'm having difficulty with (I think) ORM for geoalchemy2. My model is defined as follows:

class Location(Model):
    point = Column(Geometry('POINT', dimension=3, srid=4326))

I later insert the following:

location = Location(point=WKTElement('POINT(65.567 32.95 1156.7)', 4326))
session.add(location)
session.commit()

This results in the following error:

Geometry has Z dimension but column does not.
+4
source share

All Articles