buildPOLYGON: Manage Geographical Polygons

View source: R/sentinel.R

buildPOLYGONR Documentation

Manage Geographical Polygons

Description

Utility functions to manage geographical polygons.

Usage

buildPOLYGON(bottomleftcorner, toprighcorner, interactive = FALSE,
             xlim = c(-180, 180), ylim = c(-90, 90))
as.POLYGON(x, y = NULL)
## S3 method for class 'POLYGON'
print(x, ...)
## S3 method for class 'POLYGON'
plot(x, add = FALSE, col = rgb(1, 1, 0, 0.25),
     xlim = NULL, ylim = NULL, around = 1, ...)

Arguments

bottomleftcorner

a numeric vector with two values giving the longitude and latitude (in decimal degrees) of the bottom-left corner of a rectangle.

toprighcorner

id. for top-right corner.

interactive

a logical value. If TRUE, the user is invited to click on a map plotted to define the coordinates of the polygon.

xlim, ylim

the limits of the map.

x, y

two numeric vectors of geographical coordinates.

add

a logical value specifying whether a make a new plot (the default), or add to an existing plot.

col

the color of the piolygon (by default: transparent yellow).

around

the space left between the polygon and the borders of the plot.

...

further arguments passed to and from methods.

Details

These functions help to build objects of class "POLYGON" which are then optionally used when calling searchCopernicus.

Value

an object of class "POLYGON".

Author(s)

Emmanuel Paradis


emmanuelparadis/sentinel documentation built on May 2, 2024, 4:52 a.m.