Closed anstosa closed 2 years ago
I'm not familiar with GORM, but if you want to interface with PostGIS then you'll need to convert the geometry to/from EWKB or hex-encoded EWKB, depending on the exact query you're using. See the PostGIS example for a full example.
Thanks for the pointer!
I'm new to go and gis so forgive probably a lot of ignorance. I'm using gorm as my ORM and trying to insert a 3D ECEF point into PostGIS like so
When I do this I get
Cannot encode geom.Point into oid 18001 - geom.Point must implement Encoder or be converted to a string
What am I missing?