Skip to contents

Simplify contours removing isolated polygons

Usage

shoot_isolated(contours, voronoi, min_address_shoot, var_bv = "id_brut_bv_reu")

Arguments

contours

contours

voronoi

voronoi polygons

min_address_shoot

minimal number of address by polygons in result contours (global parameter)

var_bv

name for bv code variable in address table

Value

simplified contours

Details

  • Counts the number of voronoï polygons used to create each BV contour

  • Targets cast BV Contours (cBVc) built with less than min_address_shoot voronois/points

  • if cBVc is not isolated (island for example) and at least one neighbor is big enough:

    • replace old BV code by the biggest neighbor 's BV code.

  • Reshape simplified BV contours