extent2polygon: Utility Functions.

Description Usage Arguments Value Author(s) See Also Examples

Description

Convert extent to Polygon.

Usage

1
2
3
4
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

1
2
3
4
extent2polygon(extent(12,13,47,48))

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

kardinal-eros/sabotag-tools documentation built on May 20, 2019, 7:21 a.m.