Lightweight Well-Known Geometry Parsing
Overview
Provides a minimal R and C++ API for parsing well-known binary and well-known text representation of geometries to and from R-native formats. Well-known binary is compact and fast to parse; well-known text is human-readable and is useful for writing tests. These formats are useful in R only if the information they contain can be accessed in R, for which high-performance functions are provided here.
- Ensure package tests pass against forthcoming vctrs (#231).
- Avoid
memcpy()calls for zero size copies (@MichaelChirico, #227, #228).
From NEWS.md in the release
Install
Health
NOTER code for possible problemsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64
Found calls to structure() using deprecated special names: wk/tests/testthat/test-grd-extract.R (.Dim: 1) wk/tests/testthat/test-grd-plot.R (.Dim: 1) wk/tests/testthat/test-grd-subset.R (.Dim: 1) '.Dim' should be changed to 'dim'.
- NOTE8 OK, 5 NOTENow
- NOTE11 OK, 2 NOTE2026-07-16
- OK14 OK2026-03-10
Documentation
The repository also keeps web-only articles.
- Help pages
- 60 (1 internal)includes a package overview page
- Examples that run
- 100%42 run in a plain check
- Exported functions with examples
- 69%
- Documented parameters
- 76%
- Return-value docs
- 71%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 99%
- Median days to close, 50 most recently updated closed issues
- 38
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
11 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/paleolimbot/wk on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2025-12-21 · The repository has a site deploy workflow
pkgdown site last built 2025-12-16, before release 0.9.5 (2025-12-18)
Show all practicesHide 2 practices
Dependencies
Installing wk adds no packages beyond those that come with R.
Show all 31 packagesHide all 31 packages
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 0.9.5Latest
- RR 4.5.0 released · 2025-04-11
- 0.9.42024-10-11 · diff ↗
- 0.9.32024-09-06 · diff ↗
- 0.9.22024-07-09 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 0.9.12023-11-29 · diff ↗
- 0.9.02023-10-22 · diff ↗
- 0.8.02023-08-25 · diff ↗ ·
added 7 exports
wk_coords<-, wk_clockwise, wk_counterclockwise, wk_orient, wk_orient_filter, wk_trans_explicit, wkb_to_hex - 0.7.32023-05-07 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 0.7.22023-03-17 · diff ↗
- 0.7.12022-12-09 · diff ↗
- 0.7.02022-10-13 · diff ↗ ·
removed 1 export
wk_chunk_map_featureadded 42 exports
as_grd_rct, as_grd_xy, crc_center, crc_r, crc_x, crc_y, grd, grd_cell, grd_cell_range, grd_cell_rct, grd_cell_xy, grd_crop, grd_data_extract, grd_data_subset, grd_extend, grd_extract, grd_extract_nearest, grd_rct, grd_snap_next, grd_snap_previous, grd_subset, grd_summary, grd_tile, grd_tile_summary, grd_tile_template, grd_xy, new_wk_grd, rct_contains, rct_height, rct_intersection and 12 more - RR 4.2.0 released · 2022-04-22
Show 12 earlier eventsHide 12 earlier events
- 0.6.02022-01-03 · diff ↗ ·
removed 3 exports
wkb_problems, wkt_format, wkt_problemsadded 15 exports
wk_is_geodesic<-, is_handleable, wk_chunk_map_feature, wk_chunk_strategy_coordinates, wk_chunk_strategy_feature, wk_chunk_strategy_single, wk_crs_longlat, wk_crs_proj_definition, wk_envelope, wk_envelope_handler, wk_geodesic_inherit, wk_handle_slice, wk_is_geodesic, wk_is_geodesic_output, wk_set_geodesic - 0.5.02021-07-13 · diff ↗ ·
added 31 exports
as_wk_trans, new_wk_trans, wk_affine_compose, wk_affine_fit, wk_affine_identity, wk_affine_invert, wk_affine_rescale, wk_affine_rotate, wk_affine_scale, wk_affine_translate, wk_collection, wk_collection_filter, wk_coords, wk_drop_m, wk_drop_z, wk_flatten, wk_flatten_filter, wk_linestring, wk_linestring_filter, wk_plot, wk_polygon, wk_polygon_filter, wk_set_m, wk_set_z, wk_trans_affine, wk_trans_inverse, wk_trans_set, wk_transform, wk_transform_filter, wk_vertex_filter and 1 more - RR 4.1.0 released · 2021-05-18
- 0.4.12021-03-16 · diff ↗
- 0.4.02021-03-06 · diff ↗ ·
removed 16 exports
as_wksxp, is_wk_wksxp, new_wk_wksxp, parse_wksxp, validate_wk_wksxp, vec_cast.wk_wksxp, vec_ptype2.wk_wksxp, wkb_format, wkb_translate_wksxp, wksxp, wksxp_format, wksxp_problems, wksxp_translate_wkb, wksxp_translate_wksxp, wksxp_translate_wkt, wkt_translate_wksxpadded 48 exports
wk_crs<-, as_crc, as_wk_handler, crc, handle_wkt_without_vector_size, is_wk_handler, new_wk_crc, new_wk_handler, sfc_writer, vec_cast.wk_crc, vec_cast.wk_rct, vec_ptype2.wk_crc, vec_ptype2.wk_rct, wk_bbox, wk_bbox_handler, wk_count, wk_count_handler, wk_crs, wk_crs_auto, wk_crs_auto_value, wk_crs_equal, wk_crs_equal_generic, wk_crs_inherit, wk_crs_output, wk_debug, wk_debug_filter, wk_format, wk_geometry_type, wk_geometry_type_label, wk_handle and 18 more - 0.3.42021-01-16 · diff ↗
- 0.3.32020-10-13 · diff ↗ ·
added 25 exports
as_rct, as_xy, new_wk_rct, new_wk_xy, new_wk_xym, new_wk_xyz, new_wk_xyzm, rct, validate_wk_xy, validate_wk_xym, validate_wk_xyz, validate_wk_xyzm, vec_cast.wk_xy, vec_cast.wk_xym, vec_cast.wk_xyz, vec_cast.wk_xyzm, vec_ptype2.wk_xy, vec_ptype2.wk_xym, vec_ptype2.wk_xyz, vec_ptype2.wk_xyzm, xy, xy_dims, xym, xyz, xyzm - 0.3.22020-08-03 · diff ↗
- 0.3.12020-07-21 · diff ↗ ·
removed 40 exports
coords_linestring_translate_wkb, coords_linestring_translate_wksxp, coords_linestring_translate_wkt, coords_point_translate_wkb, coords_point_translate_wksxp, coords_point_translate_wkt, coords_polygon_translate_wkb, coords_polygon_translate_wksxp, coords_polygon_translate_wkt, wk_geometry_type, wk_geometry_type_id, wkb_coords, wkb_debug, wkb_draw_lines, wkb_draw_points, wkb_draw_polypath, wkb_feature_ranges, wkb_meta, wkb_plot_new, wkb_ranges, wksxp_coords, wksxp_debug, wksxp_draw_lines, wksxp_draw_points, wksxp_draw_polypath, wksxp_feature_ranges, wksxp_meta, wksxp_plot_new, wksxp_ranges, wkt_coords and 10 more - 0.3.02020-06-21 · diff ↗ ·
added 21 exports
coords_linestring_translate_wkb, coords_linestring_translate_wksxp, coords_linestring_translate_wkt, coords_point_translate_wkb, coords_point_translate_wksxp, coords_point_translate_wkt, coords_polygon_translate_wkb, coords_polygon_translate_wksxp, coords_polygon_translate_wkt, is_wk_wkb, is_wk_wksxp, is_wk_wkt, parse_wkb, parse_wksxp, parse_wkt, vec_cast.wk_wkb, vec_cast.wk_wksxp, vec_cast.wk_wkt, vec_ptype2.wk_wkb, vec_ptype2.wk_wksxp, vec_ptype2.wk_wkt - 0.2.12020-05-11
- RR 4.0.0 released · 2020-04-24
Package metadata
- First published
- 2020-05-11
- Total releases
- 21 / 6 yrs
- License
- MIT + file LICENSE OSI · relicensed from LGPL (>= 2.1) in 0.3.1
- Minimum R
- ≥ 2.10
- Bundled data
- 791 KB / 3 files
- Download size
- 1.0 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("wk")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.