extent2polygon: Utility Functions.

extent2polygonR Documentation

Utility Functions.

Description

Convert extent to Polygon.

Usage

extent2polygon(object, ...)

## S4 method for signature 'Background'
extent2polygon(object, ...)

Arguments

object

Objects of class ⁠Extent⁠ as defined in package raster, or Object of class ⁠Background⁠. Returns ⁠layers(object)$extent⁠ as polygon.

...

⁠proj4string⁠, pased to CRS.

Value

A ⁠SpatialPolygons⁠ object.

Author(s)

Roland Kaiser

See Also

floragrid

Examples

extent2polygon(extent(12,13,47,48))

x <- background(extent(12,13,47,48))
extent2polygon(x)

kardinal-eros/sabotag-tools documentation built on Feb. 6, 2025, 1:12 a.m.