Learn R Programming

stplanr (version 0.4.0)

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 (from sf or sp packages)

See Also

Other geo: bbox_scale, buff_geo, crs_select_aeq, decode_gl, gclip, geo_bb, mapshape_available, mapshape, quadrant, reproject

Examples

Run this code
# NOT RUN {
geo_bb_matrix(routes_fast)
geo_bb_matrix(routes_fast_sf)
geo_bb_matrix(cents[1, ])
geo_bb_matrix(c(-2, 54))
geo_bb_matrix(sf::st_coordinates(cents_sf))
# }

Run the code above in your browser using DataLab