gridMaker: Create grid with polygons

View source: R/gridMaker.R

gridMakerR Documentation

Create grid with polygons

Description

This function takes each grid from longitude and latitude vectors or a raster image and creates polygons wich later can be used with sf package functions.

Usage

gridMaker(grid, crs = 4326)

Arguments

grid

Raster image or points (in a grid configuration, from lower-left to uper-right).

crs

Integer or String. EPSG code or PROJ4 string for polygons.

export

Logic. Save the polygons in file.

name

String. Name of the file to be exported.

Value

Grid as polygons


profesorpaiche/polilla documentation built on Nov. 3, 2023, 2:23 a.m.