Learn R Programming

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

Installation

Install from CRAN:

install.packages("rbgm")

Install the development version from Github using devtools.

# install.packages("devtools")
devtools::install_github("mdsumner/rbgm")

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/

Examples

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.

Copy Link

Version

Install

install.packages('rbgm')

Monthly Downloads

186

Version

0.2.0

License

GPL-3

Maintainer

Michael D. Sumner

Last Published

April 3rd, 2025

Functions in rbgm (0.2.0)

bgmfile

Read BGM
nodeSpatial

Vertices as Spatial points.
rbgm-package

Utilities for BGM files for Atlantis
boxSpatial

Convert to spatial format
build_dz

Build Atlantis dz Values