region2SpatialPolygon: creates polygon from raster extent

View source: R/region2SpatialPolygon.r

region2SpatialPolygonR Documentation

creates polygon from raster extent

Description

creates polygon from raster extent

Usage

extent2SpatialPolygon(ext)
region2SpatialPolygon(region,v_area=region)

Arguments

ext

raster extent or vector of region limits (xmax, xmax, ymin, ymax)

region, v_area

region identifier as defined in the region_definitions file.

Author(s)

Robert K. Bauer

Examples

r <- regions("lion")
ext <- extent(c(r$xlim,r$ylim))
extent2SpatialPolygon(ext)

region2SpatialPolygon("lion")

oceanmap documentation built on Nov. 10, 2023, 5:08 p.m.