Description Usage Arguments Details Value Warning Examples
Take the output of bgmfile
and return a Spatial
object
or a sf object.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | 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 |
Note that the '_sp' forms are aliased to original functions called '*Spatial', and now have '_sf' counterparts to return that format.
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
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.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.