我在(我认为)geoalchemy2 的 ORM 上遇到了困难。我的模型定义如下:
class Location(Model):
point = Column(Geometry('POINT', dimension=3, srid=4326))
我后来插入如下:
location = Location(point=WKTElement('POINT(65.567 32.95 1156.7)', 4326))
session.add(location)
session.commit()
这给出了以下错误:
Geometry has Z dimension but column does not.