perim | R Documentation |
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)
## S4 method for signature 'SpatVector'
perim(x)
x |
SpatVector |
numeric (m)
f <- system.file("ex/lux.shp", package="terra")
v <- vect(f)
perim(v)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.