Convert Between Spatial Objects and Well-Known Binary Geometry
Overview
Utility functions to convert between the 'Spatial' classes specified by the package 'sp', and the well-known binary '(WKB)' representation for geometry specified by the 'Open Geospatial Consortium'. Supports 'Spatial' objects of class 'SpatialPoints', 'SpatialPointsDataFrame', 'SpatialLines', 'SpatialLinesDataFrame', 'SpatialPolygons', and 'SpatialPolygonsDataFrame'. Supports 'WKB' geometry types 'Point', 'LineString', 'Polygon', 'MultiPoint', 'MultiLineString', and 'MultiPolygon'. Includes extensions to enable creation of maps with 'TIBCO Spotfire'.
- Change to which WKB representations SpatialPolygons convert to
- SpatialPolygons objects now convert to either WKB Polygons or WKB MultiPolygons
- If each Polygons object in the SpatialPolygons object contains a single Polygon object with only one exterior boundary then convert to WKB Polygon, otherwise convert to WKB MultiPolygon
- Previously SpatialPolygons were converted to WKB Polygon containing multiple rings
- Make changes for compatibility with R 4.0.0 (#12)
From NEWS.md in the release
Install
Health
NOTECRAN incoming feasibilityr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Maintainer: ‘Ian Cook <ianmcook@gmail.com>’
No Authors@R field in DESCRIPTION.
Please add one, modifying
Authors@R: c(person(given = c("TIBCO", "Software"),
family = "Inc.",
role = "aut"),
person(given = "Ian",
family = "Cook",
role = "cre",
email = "ianmcook@gmail.com"))
as necessary.- NOTE11 OK, 2 NOTENow
- NOTE12 OK, 2 NOTE2026-03-10
Documentation
- Help pages
- 4
- Examples that run
- 100%3 run in a plain check
- Exported functions with examples
- 75%
- Documented parameters
- 90%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- not measured
- Median days to close, 50 most recently updated closed issues
- 1
- Median days to close, 50 most recently updated closed PRs
- not measured
Stars over time
Forks over time
Releases over time
Issues over time
4 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/ianmcook/wkb on 2026-10-18.
Dependencies
Installing wkb adds 1 package (1 with compiled code, 4.3 MB of source tarballs). Heaviest: sp 4.3 MB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- 0.4-0Latest
- RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
- RR 3.4.0 released · 2017-04-21
- RR 3.3.0 released · 2016-05-03
- 0.3-02016-03-24 · diff ↗
- 0.2-0
- RR 3.2.0 released · 2015-04-16
- 0.1-02015-02-28
Show 1 earlier eventHide 1 earlier event
- RR 3.1.0 released · 2014-04-10
Package metadata
- First published
- 2015-02-28
- Total releases
- 4 / 11 yrs
- License
- BSD_3_clause + file LICENSE OSI
- Download size
- 14 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("wkb")Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.