get_extent: Get extent of 'sf' object

Description Usage Arguments Details

Description

Get extent of sf object

Usage

1
2
get_extent(features, x_add = 0, y_add = 0, method = "centroid",
  per_feature = T, asp = NULL)

Arguments

features

an object of type sf

x_add, yadd:

the distances from the centeroid, with which the extent window should be drawn

per_feature

per feature: should raster be returned PER FEATURE part or for the whole sf object?

Details

gets the centeroid of feature(s), adds the x, and y distances and returns a matrix with x/y min/max plus and extent-object.


swissgeodata4r/swissrastermaps4r documentation built on May 31, 2019, 6:44 p.m.