Learn R Programming

stplanr (version 1.2.2)

geo_bb_matrix: Create matrix representing the spatial bounds of an object

Description

Converts a range of spatial data formats into a matrix representing the bounding box

Usage

geo_bb_matrix(shp)

Arguments

shp

Spatial object

See Also

Other geo: bbox_scale(), bind_sf(), geo_bb(), geo_buffer(), geo_length(), geo_projected(), geo_select_aeq(), quadrant()

Examples

Run this code
geo_bb_matrix(routes_fast_sf)
geo_bb_matrix(cents_sf[1, ])
geo_bb_matrix(c(-2, 54))
geo_bb_matrix(sf::st_coordinates(cents_sf))

Run the code above in your browser using DataLab