Geospatial types support (initial version - POINTS
only)
#877
Replies: 4 comments 6 replies
-
@snork-alt What is the difference between |
Beta Was this translation helpful? Give feedback.
-
I don't think we need the |
Beta Was this translation helpful? Give feedback.
-
What should be the result of function POINT(FLOAT, FLOAT) and DISTANCE(POINT, POINT) when one or both arguments are null? I checked several implementations and it looks like the Also, do we need to implement support for geo types from snowflake in the initial version? |
Beta Was this translation helpful? Give feedback.
-
We need to support geospatial types and functions in Dozer. The work will consist of the following:
dozer-types
to support geospatial typesFor the implementation, we will use the Rust Geo library (https://docs.rs/geo/latest/geo/)
The initial version will have limited support for geo data types. We will extend it later after we will introduce the ARRAY type
Types support
We shall extend the
dozer-types
with the following types mapped 1 to 1 with the Rust Geo types:Coord
Point
Polygon
Creation
The creation of the above types should be supported through SQL functions. In particular:
Functions
DISTANCE(POINT, POINT, [GEODESIC | HAVERSINE | VINCENTY]) - defaults to GEODESIC
CONTAINS(POLYGON, POINT | POLYGON)
Beta Was this translation helpful? Give feedback.
All reactions