Learn R Programming

sits (version 1.5.3)

sits_roi_to_tiles: Find tiles of a given ROI and Grid System

Description

Given an ROI and grid system, this function finds the intersected tiles and returns them as an SF object.

Usage

sits_roi_to_tiles(roi, crs = NULL, grid_system = "MGRS")

Value

A sf object with the intersect tiles with three columns tile_id, epsg, and the percentage of coverage area.

Arguments

roi

Region of interest (see notes below).

crs

Coordinate Reference System (CRS) of the roi. (see details below).

grid_system

Grid system to be used for the output images. (Default is "MGRS")

Author

Felipe Carvalho, felipe.carvalho@inpe.br

Felipe Carlos, efelipecarlos@gmail.com

Examples

Run this code
if (sits_run_examples()) {
# Defining a ROI
roi <- c(
  lon_min = -64.037,
  lat_min = -9.644,
  lon_max = -63.886,
  lat_max = -9.389
)
# Finding tiles
tiles <- sits_roi_to_tiles(roi, grid_system = "MGRS")
}

Run the code above in your browser using DataLab