dividePolygon: Devide Polygon into N Equal Area Parts

Description Usage Arguments Value Note

Description

This function divides a polygon feature into n-party of approximatly the same area. The division is performed along the y-axis (N-S). Therefore, polygons should be rotated appropriate.

Usage

1
2
dividePolygon(x, angle = 0, n, trans = TRUE, btol = 1e-04,
  pgtol = 1e-09, maxit = 100, cores = 1, quiet = TRUE)

Arguments

x

object of class sf

angle

Can be one single value, or a vector with the same length as the input object x. North is 0 degree, and East 90. Default: 0 degree for North-South. For East-West use 90 degree.

n

number of parts

trans

angle input is transformed, so that N-S cutting is appropriate. Default: TRUE.

btol

tolerance value for lower and upper boundary in optim().Default: 0.0001

pgtol

tolerance value to reduce the sum of residuals in optimizing function

maxit

maximum iteration to convergence in finding optimal points. Default: 100

cores

number of cores for parallel processing. Default: 1 (sequential)

quiet

no outputs in console. Default: TRUE

Value

Geometry similar to sf input including divisions.

Note


ggRaver/Lslide documentation built on June 20, 2019, 2:29 p.m.