zoneFusion3: zoneFusion3

Description Usage Arguments Details Value Examples

Description

zoneFusion3

Usage

1
zoneFusion3(K, iC, Ns, map, minSize = 0.01, simplitol = 0.001, disp = 0)

Arguments

K

zoning object, as returned by the calNei function

iC

index of current zone in zoning

Ns

zone neighborhood Boolean matrix

map

object returned by function genMap

minSize

minimum admissible zone size

simplitol

tolerance for spatial polygons geometry simplification

disp

information level (0-no info, 1-print info, 2-plot)

Details

merge current zone #iC with neighbor zone in zoning. If there are several neighbor zones, the selected one is the zone whose area is greater than the admissible size threshold that has the closest average value to the current one.

Value

a zone obtained by merging current zone with neighbor zone

Examples

1
2
3
4
5
data(mapTest)
data(resZTest)
K=resZTest
Ns=geozoning:::getNs(K$zoneNModif,5) # find neighbors of zone 5
zoneFusion3(K,5,Ns,mapTest,disp=2) # merge and plot result of merging

geozoning documentation built on May 2, 2019, 9:43 a.m.