createBox: createBox

Description Usage Arguments Examples

Description

This function creates a rectangular SpatialPolygons, given the coordinates of the lower-left and upper-right corners.

Usage

1
createBox(coords_list)

Arguments

coords_list

The coordinates of the two corners of the box as a list of x and y, as obtained for example with locator().

Examples

1
2
library("sp", "sptools")
createBox(list(x=c(0,2), y=c(0,2)))

duccioa/sptools documentation built on May 3, 2019, 1:48 p.m.