gpat_create_grid {rgeopat2} | R Documentation |
Grid polygon creator
Description
Creates a polygon of a GeoPAT 2 grid based on the grid header
Usage
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
sf
Examples
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)
[Package rgeopat2 version 0.4.0 Index]