Create aoi polygon from topleft and bottomright coordinates

Share:

Description

An AOI (Area of Interest) is created based on two points (topleft and bottomright) using a coordinate reference system.

Usage

1
createAoi(topleft, bottomright, EPSG)

Arguments

topleft

a vector with topleft x,y coordinates

bottomright

a vector with bottomright x,y coordinates

EPSG

Coordinate reference system EPSG code

Value

object of class SpatialPolygons

Author(s)

Guillermo Federico Olmedo

Fonseca-Luengo, David

Examples

1
2
3
4
tl <- c(493300, -3592700)
br <- c(557200, -3700000) 
aoi <- createAoi(topleft = tl, bottomright=br, EPSG=32619)
plot(aoi)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.