createAoi: Create aoi polygon from topleft and bottomright coordinates

Description Usage Arguments Value Author(s) See Also Examples

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

See Also

Other support functions: checkSRTMgrids, prepareSRTMdata

Examples

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

Example output

Loading required package: raster
Loading required package: sp
Loading required package: rgdal
rgdal: version: 1.5-18, (SVN revision 1082)
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 3.0.4, released 2020/01/28
Path to GDAL shared files: /usr/share/gdal
GDAL binary built with GEOS: TRUE 
Loaded PROJ runtime: Rel. 6.3.1, February 10th, 2020, [PJ_VERSION: 631]
Path to PROJ shared files: /usr/share/proj
Linking to sp version:1.4-4
To mute warnings of possible GDAL/OSR exportToProj4() degradation,
use options("rgdal_show_exportToProj4_warnings"="none") before loading rgdal.

water documentation built on May 2, 2019, 2:17 a.m.