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)
bgm | output of a BGM file, as returned by |
---|
Spatial* object or sf object
box_sp SpatialPolygonsDataFrame
face_sp SpatialLinesDataFrame
boundary_sp SpatialPolygonsDataFrame
node_sp SpatialPointsDataFrame
point_sp SpatialPointsDataFrame
box_sf sf with sfc_POLYGON column
face_sf sf with sfc_LINESTRING column
boundary_sf sf with sfc_POLYGON column
node_sf sf with sfc_POINT column
point_sf sf with sfc_POINT column
Note that the `_sp` forms are aliased to original functions called `*Spatial`, and now have `_sf` counterparts to return that format.
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.