I am using TypeORM which is connected to a local postgis instance running from this image
This is my entity file (Geometry
comes from this package):
@Entity()
export class Port {
@Column({ type: 'geometry' })
geometry: Geometry;
}
Here I can see that TypeORM succeeded in creating the database.
However when I try to insert any port, TypeORM throws:
QueryFailedError: unknown GeoJSON type
Data I am trying to insert is in WKT format. For example
"POINT(18.5478833 54.5353333)"
What am I doing wrong?