duckspatial 0.2.0999 dev
MAJOR CHANGES
connargument defaults now to NULL. This parameter is not mandatory anymore in spatial operations, and it will be handled internally. The argument has been moved afterxandyarguments.ddbs_filter(): usesintersectsforST_Intersectsinstead ofintersection.Allow the use of either
sfobject or a DuckDB table as input/output in every operation.Functions that use
xandyarguments, can indistinctively usesf, DuckDB table name, or mixed.
NEW FEATURES
ddbs_boundary(): returns the boundary of geometries.ddbs_concave_hull(): new function to create the concave hull enclosing a geometry.ddbs_convex_hull(): new function to create the convex hull enclosing a geometry.ddbs_create_conn(): new convenient function to create a DuckDB connection.ddbs_drivers(): get list of GDAL drivers and file formats supported by DuckDB spatial extension.ddbs_join(): new function to perform spatial join operations.ddbs_length(): adds a new column with the length of the geometriesddbs_area(): adds a new column with the area of the geometriesddbs_is_valid(): adds a new logical column asserting the simplicity of the geometriesddbs_is_valid(): adds a new logical column asserting the validity of the geometriesddbs_make_valid(): makes the geometries validddbs_simplify(): makes the geometries simpleddbs_bbox(): calculates the bounding boxSpatial predicates: spatial predicates are all included in a function called
ddbs_predicate(), where the user can specify the spatial predicate. Another option, it’s to use the spatial predicate function, such asddbs_intersects(),ddbs_crosses(),ddbs_touches(), etc.
MINOR CHANGES
- All functions now have a parameter
quietthat allows users to suppress informational messages. Closed #3
duckspatial 0.2.0
CRAN release: 2025-04-29
NEW FEATURES
-
ddbs_read_vector(): gains a new argumentclausesto modify the query from the table (e.g. “WHERE …”, “ORDER BY…”)
NEW FUNCTIONS
ddbs_list_tables(): lists table schemas and tables inside the databaseddbs_glimpse(): check first rows of a tableddbs_buffer(): calculates the buffer around the input geometryddbs_centroid(): calculates the centroid of the input geometryddbs_difference(): calculates the geometric difference between two objects
IMPROVEMENTS
ddbs_intersection(): overwrite argument defaults toFALSEinstead ofNULLBetter schemas management. Added support for all functions.
