Closed nurmohammed840 closed 3 months ago
My schema look like this:
CREATE TABLE IF NOT EXISTS "Post" ( post_location GEOMETRY(Point, 4326) NOT NULL, -- Geographic coordinate system ... );
let _: geo_types::Point<f64> = row.try_get("post_location")?;
Error { kind: FromSql(1), cause: Some( WrongType { postgres: Other( Other { name: "geometry", oid: 17566, kind: Simple, schema: "public", }, ), rust: "geo_types::geometry::point::Point", }, ), }
How do i get this value?
I guess you need to convert GEOMETRY into Point in SELECT expr
GEOMETRY
Point
SELECT
My schema look like this:
How do i get this value?