Skip to contents

Merge a block to one of the target geometries

Usage

merge_block(targets, block, method = "longest-intersection")

Arguments

targets

Sequence of target blocks as a simple feature geometry

block

Block to merge as a simple feature geometry

method

Strategy for merging, choose between "smallest" (merge to smallest adjacent block) and "longest-intersection" (merge to block which it shares the longest intersection with)

Value

Blocks merged to the specified one as a simple feature geometry