You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using PostGIS geometry types and storing a record it serializes the Point type incorrectly. $10::geometry gets as parameter "(50.501899 10.963963)" instead of "Point(50.501899 10.963963)". Insert fails with an error ERROR: invalid input syntax for type point.
Column definition:
gps
geometry
not null
Record usage:
val record = dsl.newRecord(Tables.TABLE_WITH_GPS)
record.gps = org.postgis.Point(50.501899, 10.963963)
record.insert() // This throws an error
The text was updated successfully, but these errors were encountered:
When I defined my own converter based on PostgisGeometryConverter which uses
PGobject().apply {
type = "geometry" // passing in the geometry type string is just plain wrong, PGobject type does not expect enum of ["linestring", "point", ...] but ["geometry", "box2d", ...], see https://postgis.net/docs/reference.html#PostGIS_Types
value = geom.toString() // this converts postgis geometry to an EWKT string
}
instead of
PGobject().apply {
type = geom.typeString
value = geom.value
}
When using PostGIS geometry types and storing a record it serializes the
Point
type incorrectly.$10::geometry
gets as parameter"(50.501899 10.963963)"
instead of"Point(50.501899 10.963963)"
. Insert fails with an errorERROR: invalid input syntax for type point
.Column definition:
Record usage:
The text was updated successfully, but these errors were encountered: