rbgm - R tools for Box Geometry model files

rbgm allows reading of geometry from BGM files, either in raw coordinate form or as Spatial objects or sf objects. The aim is to make all of the following straightforward:

  • read of the BGM format, maintaining all topology and attributes
  • use of the BGM specification for visualization and data extraction
  • creation of BGM from shapefiles, R spatial objects and whatever else


Install from CRAN:

Install the development version from Github using devtools.

# install.packages("devtools")

How can I contribute to rbgm?

Install, use, test the package, and let me know!

Please use the Issues tab on GitHub to add feature requests and bug reports: https://github.com/AustralianAntarcticDivision/rbgm/issues/

use Pull Requests if you have changes you’d like to contribute.


See the package vignettes for examples.

Please note that the ‘rbgm’ project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.