Replies: 9 comments
-
Yes, we would like to see spatial / GIS support, it's just a matter of time and priorities. Determining how it interacts with postgis will certainly need to be part of the design. |
Beta Was this translation helpful? Give feedback.
-
Thanks, will wait. |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
Does it support spatial extension yet? |
Beta Was this translation helpful? Give feedback.
-
I think it won't work like your example. The main difficulty to implement is postgis—duckdb function mapping. In the PG should be used normal Postgis functions or duckdb functions from the schema duckdb. Postgis geometry is stored in the ewkb format, duckdb stores wkb - without srid and BBBox information, than could add additional difficulty. A lot of things to do .... |
Beta Was this translation helpful? Give feedback.
-
PostGIS doesn't store EWKB internally, and DuckDB doesn't store WKB internally either. Both use their own internal format and while they are not identical, the DuckDB format is very much inspired by PostGIS (both store BBOX:es). The major difference is that DuckDB does not store the SRID in the geometry value itself (and doesn't really have the concept of integer SRIDs in general). I imagine the easiest solution is to just cast/convert to and from WKB when transferring geometries between DuckDB/PostGIS as ISO WKB basically models the common subset of spatial type support between the two systems. |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
For inspiration: linking a recent post from Paul Ramsey related to the topic (on empty geometries and how to store geometry in general): |
Beta Was this translation helpful? Give feedback.
-
Is there a plan to add this feature to the roadmap? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Do you plan to implement DuckDB spatial extension support, mainly ST_Read?
Will it be PostGIS types support?
Beta Was this translation helpful? Give feedback.
All reactions