polartoolkit.alter_region

Contents

polartoolkit.alter_region#

alter_region(starting_region, zoom=0, n_shift=0, w_shift=0)[source]#

Change a bounding region by shifting the box east/west or north/south, or zooming in or out.

Parameters:
  • starting_region (tuple[float, float, float, float]) – Initial region in meters in format [xmin, xmax, ymin, ymax]

  • zoom (float, optional) – zoom in or out, in meters, by default 0

  • n_shift (float, optional) – shift north, or south if negative, in meters, by default 0

  • w_shift (float, optional) – shift west, or east if negative, in meters, by default 0

Returns:

Returns the altered region

Return type:

tuple[float, float, float, float]