locan.data.region_utils.expand_region#

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

Expand a region by distance. If region contains a list of regions, the unification of all expanded regions is returned.

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

  • distance (int | float) – Distance by which the region is expanded 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