pixelToPolygon: Convert pixel to polygon

Description Usage Arguments Value

Description

Convert a pixel to a polygon object by giving the raster object and cell number or xy coordinates vector

Usage

1

Arguments

x

Raster* object

cell

Cell number (numeric) or vector of length 2 representing the x and y coordinate of the desired pixel

Value

Object of class SpatialPolygons encompassing the outline of the pixel located at cell.


bendv/timeSyncR documentation built on May 12, 2019, 10:58 a.m.