This method returns the length of lines or the perimeter of polygons.
When the coordinate reference system is not longitude/latitude, you may get more accurate results by first transforming the data to longitude/latitude with project
## S4 method for signature 'SpatVector'perim(x)
Arguments
x: SpatVector
Returns
numeric (m)
Examples
f <- system.file("ex/lux.shp", package="terra")v <- vect(f)perim(v)