water (version 0.8)

createAoi: Create aoi polygon from topleft and bottomright coordinates

Description

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

Usage

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

See Also

Other support functions: checkSRTMgrids, prepareSRTMdata

Examples

Run this code
# NOT RUN {
tl <- c(493300, -3592700)
br <- c(557200, -3700000) 
aoi <- createAoi(topleft = tl, bottomright=br, EPSG=32619)
plot(aoi)
# }

Run the code above in your browser using DataLab