Usage
boxSpatial(bgm)
box_sp(bgm)
box_sf(bgm)
boundarySpatial(bgm)
boundary_sp(bgm)
boundary_sf(bgm)
node_sp(bgm)
point_sp(bgm)
faceSpatial(bgm)
face_sp(bgm)
face_sf(bgm)Arguments
- bgm
output of a BGM file, as returned by
bgmfile
Value
Spatial* object or sf object
box_sp
SpatialPolygonsDataFrameface_sp
SpatialLinesDataFrameboundary_sp
SpatialPolygonsDataFramenode_sp
SpatialPointsDataFramepoint_sp
SpatialPointsDataFrame
box_sf
sf with sfc_POLYGON columnface_sf
sf with sfc_LINESTRING columnboundary_sf
sf with sfc_POLYGON columnnode_sf
sf with sfc_POINT columnpoint_sf
sf with sfc_POINT column
Details
Note that the `_sp` forms are aliased to original functions called `*Spatial`, and now have `_sf` counterparts to return that format.
Warning
The sf objects created by `box_sf()`, `node_sf()`, `face_sf()`, `boundary_sf()` and `point_sf()` were not created by the sf package. They were created with reference to the sf format prior to November 2019. If you have problems it may be necessary to recreate the 'crs' part of the of the object with code like `x <- box_sf(bgm); library(sf); st_crs(x) <- st_crs(attr(x$geometry, "crs")$proj)`.
Get in touch ([create an issue](https://github.com/AustralianAntarcticDivision/rbgm/issues)) if you have any troubles.
