I want to insert records from an API to my database postGIS. The api geometry respond with a mix of linestring and mulitlinestring with Z value.
How can i mix both types into the same geometry column?
As soon as i hit a record that is a linestring I get an data type error. If i use geometry type Geometry then I Geometry has Z dimension but column does not.
Here is my table definition. How can I define a table which can mix simple/multilinestring with Z value?
class Item(Base):
__tablename__ = 'test'
id = Column(Integer, primary_key=True)
kategori = Column(String)
geom = Column(Geometry('MultiLineStringZ', dimension=3))