gpat_create_grid: Grid polygon creator

Description Usage Arguments Value Examples

View source: R/gpat_create_grid.R

Description

Creates a polygon of a GeoPAT 2 grid based on the grid header

Usage

1
gpat_create_grid(x, brick = FALSE)

Arguments

x

A filepath to the GeoPAT 2 grid header file

brick

TRUE/FALSE; should a new grid polygon have a brick topology

Value

sfc_POLYGON

Examples

1
2
3
4
5
6
header_filepath = system.file("rawdata/Augusta2011_grid100.hdr", package="rgeopat2")
my_grid = gpat_create_grid(header_filepath)
my_grid_brick = gpat_create_grid(header_filepath, brick = TRUE)

plot(my_grid)
plot(my_grid_brick, add = TRUE, border = "red", lwd = 3)

rgeopat2 documentation built on May 2, 2019, 4:01 p.m.