Skip to content

duckspatial 1.1.2

Choose a tag to compare

@Cidree Cidree released this 22 Jun 19:47

NEW FEATURES

  • ddbs_shortest_line(): returns the LINESTRING connecting the closest points between each pair of geometries from x and y.

  • ddbs_azimuth(): computes the clockwise azimuth (bearing from north) between two sets of POINT geometries. Returns a numeric matrix (mode = "sf") or a lazy tbl with all pairs (default). Supports radians (default) and degrees via the unit argument.

  • ddbs_vertices(): collects all vertices of a geometry into a MULTIPOINT.

  • ddbs_point(): creates POINT geometries from numeric coordinate vectors. Supports 2D, 3D (Z), and 4D (Z + M) coordinates, extra attribute columns via ..., and CRS assignment.

  • ddbs_xmax(), ddbs_xmin(), ddbs_ymax(), ddbs_ymin(), ddbs_zmax(), ddbs_zmin(), ddbs_mmax(), ddbs_mmin(): return the maximum or minimum coordinate value for each geometry (by_feature = TRUE) or the global extreme across the dataset (by_feature = FALSE).

  • ddbs_dimension(): returns the topological dimension of each geometry (0 = point, 1 = line, 2 = polygon, -1 = empty).

  • ddbs_line_locate_point(): returns the fractional position (0–1) of the closest point on a linestring to a reference point. The y argument accepts an sf object, a duckspatial_df, or a character DuckDB table name (each must contain exactly 1 point feature).

ENHANCEMENTS

  • ddbs_union_agg(): gains a mem argument. Set mem = TRUE to use ST_MemUnion_Agg() instead of ST_Union_Agg() — slower but more memory efficient.