Skip to content

Can not use geo_types::Polygon in statements #1250

Open
@emirhantasdeviren

Description

@emirhantasdeviren

Hello,

I have postgres database with postgis extension and I have a column of geometry(polygon, 4326). Using with-geo-types-0_7 feature. However the geo_types::Polygon does not implement ToSql and FromSql traits.

As I see only Point, Rect and LineString are implemented in postgres-types.

What is the proper way to handle polygon geometry encoding/decoding in statements and results?

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