# pyresample.boundary.legacy_boundary module

The Boundary classes.

class pyresample.boundary.legacy_boundary.AreaBoundary(*sides)

  Bases: `Boundary`

  Area boundary objects.

  The inputs must be a (lon_coords, lat_coords) tuple for each of the 4 sides.

  __init__(*sides)
  contour()

    Get the (lons, lats) tuple of the boundary object.

    It excludes the last element of each side because it’s included in the next side.

  decimate(ratio)

    Remove some points in the boundaries, but never the corners.

  classmethod from_lonlat_sides(lon_sides, lat_sides)

    Define AreaBoundary from list of lon_sides and lat_sides.

    For an area of shape (m, n), the sides must adhere the format:

    sides = [np.array([v00, v01, …, v0n]),

      np.array([v0n, v1n, …, vmn]), np.array([vmn, …, vm1, vm0]), np.array([vm0, … ,v10, v00])]

  property vertices

    Return boundary polygon vertices.

class pyresample.boundary.legacy_boundary.AreaDefBoundary(area, frequency=1)

  Bases: `AreaBoundary`

  Boundaries for area definitions (pyresample).

  __init__(area, frequency=1)

class pyresample.boundary.legacy_boundary.Boundary(lons=None, lats=None, frequency=1)

  Bases: `object`

  Boundary objects.

  __init__(lons=None, lats=None, frequency=1)
  contour()

    Get lon/lats of the contour.

  property contour_poly

    Get the Spherical polygon corresponding to the Boundary.

  draw(mapper, options, **more_options)

    Draw the current boundary on the mapper.

class pyresample.boundary.legacy_boundary.SimpleBoundary(side1, side2, side3, side4)

  Bases: `object`

  Container for geometry boundary.

  Labelling starts in upper left corner and proceeds clockwise

  __init__(side1, side2, side3, side4)