polygon_from_extent: Turn an extent object into a polygon

Description Usage Arguments Value

View source: R/UTILITY_FUNCTIONS.R

Description

Turn an extent object into a polygon

Usage

1
polygon_from_extent(x, proj4string = NULL)

Arguments

x

An extent object, or an object from which an extent object can be retrieved.

proj4string

A PROJ.4 formatted string defining the required projection. If NULL, the function will attempt to get the projection from x using projection

Value

A SpatialPolygons object.


FedData documentation built on May 30, 2017, 7:56 a.m.

Search within the FedData package
Search all R packages, documentation and source code