Create a SpatVector of polygons from the extent of a spatial object.
extentpolygon(x)
x
A spatial object.
If x is projected, the SpatVector will also be projected
SpatVector of polygons.