Using the appender with GEOMETRY type #529
Unanswered
ThomasWeiss
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When storing geometries in columns of type
BLOB
, I have been successful using the appender to write the WKB representation of these geometries as blobs, then querying them back withSELECT ST_AsText(ST_GeomFromWKB(coord)) FROM table;
.I wanted to use the
GEOMETRY
type instead ofBLOB
to spare the WKB conversions during queries and to experiment with spatial indices. When creating the columns with theGEOMETRY
type, I'm still able to write values using the appender by passing the WKB representation of the geometry toduckdb_append_blob
, but then aSELECT ST_AsText(coord) FROM table;
fails withSerialization Error: Unknown geometry type (1549010733d)
. Creating a spatial index on this column fails as well.I assume trying to write it as a blob is the way to go as
duckdb_appender_column_type
tells me that column isBLOB
, so how should I serialize the geometry if not as WKB?Beta Was this translation helpful? Give feedback.
All reactions