duckspatial 1.1.0
NEW FEATURES
-
Implementation of
duckspatialmacros: this allows to use someduckspatialfunctions withindplyrverbs (e.g.data |> mutate(area = ddbs_area(geometry))) (#92). -
ddbs_dump(): decompose multi-geometry types into individual single geometry components (#44, 117). -
ddbs_maximum_inscribed_circle(): returns the maximum inscribed circle of the input geometry (#117). -
ddbs_minimum_rotated_rectangle(): returns the minimum rotated rectangle that bounds the input geometry (#117). -
ddbs_set_crs(): assigns the CRS to a spatial object. No transformation is applied to the geometries (#118). -
ddbs_crop(): similar toddbs_intersection(), but it crops to the bounding box (#118). -
ddbs_line_interpolate(): interpolates a point or points along a line geometry (#118). -
ddbs_line_substring(): gets a fraction of a linestring (#118). -
ddbs_line_merge():merges connected multistrings (#118). -
ddbs_z()andddbs_m(): to extract Z and M coordinates as a new column (#118). -
ddbs_make_envelope(): creates a rectangular polygon from 4 coordinates (#118). -
ddbs_locate_between(): locates points that fall with the specified M range (#118). -
ddbs_locate_along(): locates points that match the specified M value (#118). -
ddbs_remove_repeated_points(): removes repeated points, optionally with some tolerance (#118). -
ddbs_read_meta(): reads the metadata of a vectorial data file (#118). -
ddbs_make_line(): creates LINESTRINGS from POINT geometries (#126).
ENHANCEMENTS
-
group_byandsummarisemethods now drop the spatial attributes when the output is not aduckspatial_dfanymore (#119). -
ddbs_create_conn(): gains theupgradeargument that is passed toddbs_install(). -
ddbs_install(): now returns a better error message if the extension is already loaded, and there's an attempt to upgrade it. -
ddbs_centroid(): gains the argumentmethodto implement ST_PointOnSurface (#118). -
ddbs_as_points()allows to create aduckspatial_dffrom raw coordinate or WKT columns. It also gains two new arguments:removeandna.fail(#125). -
ddbs_open_dataset(): can open geoparquet files when the geometry is encoded as WKB geoparquet. It also fails with a better error message when the geometry is encoded as a native arrow/geoarrow encoding (#129).
BUG FIXES
- Large datasets couldn't be processed because an
arrowcode limitation inddbs_register_table()(#124).