Skip to content

Convert Between Spatial Objects and Well-Known Binary Geometry

0packages dependsuggested by 1
24.6Kdownloads / year
64.9%test coverage
11/13flavors OK

Overview

About

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'.

Changes in 0.4-0
  • 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

CRAN checks
2NOTE11OK
Check messages
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.

CRAN check page ↗

Slowest check: 1.0 min · r-devel-windows-x86_64
Status changes
  • NOTE11 OK, 2 NOTENow
  • NOTE12 OK, 2 NOTE2026-03-10
Advisories

none known

Documentation

In release 0.4-0
READMEYes · 37 wordsVignettesNoNEWSYes · 100% structured · mentions 0.4-0Citation fileNoWebsitenot declared in DESCRIPTION
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

24.6K
CRAN downloads in the past year
Rank #2,932 · ~67/day · ~2.1K/mo
Daily download trend is not available in this view yet.
1.7K30 days
4.8K90 days
24.6K1 year
Compare downloads with other packages →
Also on69 r2u2 autocran775 conda_forge121 c2d4u

Repository

5Stars
2Forks
7Open issues
0Open PRs
4Releases
52Commits
1Commit identities
52 commits · Last activity 2019-12-05 · 0% stars, 30d · Default branch at 0.4-0.9000, ahead of CRAN 0.4-0 (checked 2026-10-18)
Responsiveness
How these are sampled
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

2023-04-11 · 42026-07-07 · 5
PracticesBeta

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.

Continuous integration (1)
Travis CI (config file)
Docs source (1)
README.Rmd
Lint, format, editor (1)
RStudio project
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
2 external dependencies (excludes base and recommended)

Installing wkb adds 1 package (1 with compiled code, 4.3 MB of source tarballs). Heaviest: sp 4.3 MB.

Depends (0)
none
Imports (1)
LinkingTo (0)
none
Suggests (1)
Enhances (0)
none
Reverse dependencies
0direct
0indirect
Suggested by 1
Suggests, most downloaded first

People & History

People (from the free-text Author field) (1)

Maintainer since 0.1-0 (2015)

Releases (4)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • 0.4-0Latest
    record
    2019-12-05 · current release · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • R
    R 3.5.0 released · 2018-04-23
  • R
    R 3.4.0 released · 2017-04-21
  • R
    R 3.3.0 released · 2016-05-03
  • 0.3-0
    record
    2016-03-24 · diff ↗
  • 0.2-0
    record
    2015-09-28 · diff ↗ ·
    added 1 export
    hex2raw
  • R
    R 3.2.0 released · 2015-04-16
  • 0.1-0
    record
    2015-02-28
Show 1 earlier eventHide 1 earlier event
  • R
    R 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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for wkb version 0.4-0 [Data set]. HJJB, LLC. Data release v2026-10-22. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy