Skip to content

Using PostGIS Geometry types #5

Description

@JindrichPilar

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions