Description Usage Arguments Details Value Examples
correctBoundaryMap
1 | correctBoundaryMap(Zi, map)
|
Zi |
list of initiales zones |
map |
object returned by function genMap |
function for post treatment of zoning that fixes the problem linked to the border between two neighbour zones and between zones and the map boundary
new list of zones with correct boundary ang the parameter "width" used for correction
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | map=geozoning::mapTest
criti = correctionTree(qProb = c(0.5), map = map)
Z = criti$zk[[1]][[1]]$zonePolygone
lab = criti$zk[[1]][[1]]$lab
plotM(map = map, Z = Z, lab = lab, byLab = FALSE)
class(rgeos::gIntersection(Z[[1]],Z[[2]])) [1]
class(rgeos::gIntersection(Z[[1]],Z[[5]])) [1]
class(rgeos::gIntersection(Z[[2]],Z[[3]])) [1]
class(rgeos::gIntersection(Z[[2]],Z[[4]])) [1]
res = correctBoundaryMap(Zi = Z, map = map)
Z = res$Z
class(rgeos::gIntersection(Z[[1]],Z[[2]])) [1]
class(rgeos::gIntersection(Z[[1]],Z[[5]])) [1]
class(rgeos::gIntersection(Z[[2]],Z[[3]])) [1]
class(rgeos::gIntersection(Z[[2]],Z[[4]])) [1]
plotM(map = map, Z = Z, lab = lab, byLab = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.