fishnet: Generatue fishnet 'fishnet'

Description Usage Arguments Examples

View source: R/Func_GIS.R

Description

Generatue fishnet fishnet

Usage

1
2
3
fishnet(ext, crs = sp::CRS("+init=epsg:4326"), n = 10,
  dx = diff(ext[1:2])/n, dy = dx, lines = FALSE, polygons = TRUE,
  points = FALSE)

Arguments

ext

Extension of the fishnet. c(xmin, xmax, ymin, ymax)

crs

Projection

n

Number of dx

dx

Interval of x direction

dy

Interval of y direction

lines

Whether to export SpatialLines

polygons

Whether to export SpatialPolygons

points

Whether to export SpatialPoints

Examples

1
2
3
library(raster)
pg=fishnet(ext=c(-80,80, -50,50), dx=5)
plot(pg)

happynotes/PIHMgisR documentation built on Jan. 25, 2020, 9:51 p.m.