Examples for 'sf::st_bbox'


Return bounding of a simple feature or simple feature set

Aliases: st_bbox is.na.bbox st_bbox.POINT st_bbox.MULTIPOINT st_bbox.LINESTRING st_bbox.POLYGON st_bbox.MULTILINESTRING st_bbox.MULTIPOLYGON st_bbox.GEOMETRYCOLLECTION st_bbox.MULTISURFACE st_bbox.MULTICURVE st_bbox.CURVEPOLYGON st_bbox.COMPOUNDCURVE st_bbox.POLYHEDRALSURFACE st_bbox.TIN st_bbox.TRIANGLE st_bbox.CIRCULARSTRING st_bbox.sfc st_bbox.sf st_bbox.Spatial st_bbox.Raster st_bbox.Extent st_bbox.numeric NA_bbox_ FULL_bbox_ format.bbox

Keywords: datasets

### ** Examples

a = st_sf(a = 1:2, geom = st_sfc(st_point(0:1), st_point(1:2)), crs = 4326)
st_bbox(a)
xmin ymin xmax ymax 
   0    1    1    2 
st_as_sfc(st_bbox(a))
Geometry set for 1 feature 
Geometry type: POLYGON
Dimension:     XY
Bounding box:  xmin: 0 ymin: 1 xmax: 1 ymax: 2
Geodetic CRS:  WGS 84
POLYGON ((0 1, 1 1, 1 2, 0 2, 0 1))
st_bbox(c(xmin = 16.1, xmax = 16.6, ymax = 48.6, ymin = 47.9), crs = st_crs(4326))
xmin ymin xmax ymax 
16.1 47.9 16.6 48.6 

[Package sf version 1.0-19 Index]