Learn R Programming

geozoning (version 1.0.0)

zoneFusion3: zoneFusion3

Description

zoneFusion3

Usage

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)

Value

a zone obtained by merging current zone with neighbor zone

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.

Examples

Run this code
# NOT RUN {
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
# }

Run the code above in your browser using DataLab