TileinPoly: Overlay raster tile and polygon

Description Usage Arguments Value Examples

View source: R/TileinPoly.r

Description

Obtain the spatial intersection of a rater tile and a spatial polygon.

Usage

1

Arguments

tile

a raster object

poly

a spatial polygon object in WGS84

Value

a dataframe with the counts of tile points in the polygon

Examples

1
2
3
cdl_tmp <- raster::raster(system.file("tif/cdl_tmp.tif", package = "viscover"))
## not run
# TileinPoly(cdl_tmp, poly)

XiaodanLyu/viscover documentation built on July 27, 2020, 9:53 p.m.