perim: Perimeter or length

perimR Documentation

Perimeter or length

Description

This method returns the length of lines or the perimeter of polygons.

When the crs is not longitude/latitude, you may get more accurate results by first unprojecting the SpatVector (you can use project to transform the crs to longitude/latitude)

Usage

## S4 method for signature 'SpatVector'
perim(x)

Arguments

x

SpatVector

Value

numeric (m)

Examples

f <- system.file("ex/lux.shp", package="terra")
v <- vect(f)
perim(v)

rspatial/terra documentation built on Nov. 5, 2024, 5:13 p.m.