locan.data.region_utils.surrounding_region#

locan.data.region_utils.surrounding_region(region, distance=100, support=None, **kwargs)[source]#

Define surrounding region by extending a region and returning the extended region excluding the input region. If region contains a list of regions, the unification of all extended regions is returned.

Parameters:
  • region (Region) – Original region(s)

  • distance (int | float) – Distance by which the region is extended orthogonal to its boundary.

  • support (Optional[Region]) – A region defining the maximum outer boundary.

  • kwargs (Any) – Other parameters passed to shapely.geometry.buffer() for Region2D objects.

Return type:

Region