def __init__(self, *args):
        """Creates an envelope from lower-left and upper-right coordinates.

        Arguments:
        args -- min_x, min_y, max_x, max_y or a four-tuple
        """
        if len(args) == 1:
            args = args[0]
        try:
            extent = list(map(float, args))
        except (TypeError, ValueError) as exc:
            exc.args = ('Cannot create Envelope from "%s"' % repr(args),)
            raise
        try:
            self.min_x, self.max_x = sorted(extent[::2])
            self.min_y, self.max_y = sorted(extent[1::2])
        except ValueError as exc:
            exc.args = ('Sequence length should be "4", not "%d"' % len(args),)
            raise
def __init__ ( self , * args ) : if len ( args ) == 1 : args = args [ 0 ] try : extent = list ( map ( float , args ) ) except ( TypeError , ValueError ) as exc : exc . args = ( 'Cannot create Envelope from "%s"' % repr ( args ) , ) raise try : self . min_x , self . max_x = sorted ( extent [ : : 2 ] ) self . min_y , self . max_y = sorted ( extent [ 1 : : 2 ] ) except ValueError as exc : exc . args = ( 'Sequence length should be "4", not "%d"' % len ( args ) , ) raise
Creates an envelope from lower-left and upper-right coordinates.

        Arguments:
        args -- min_x, min_y, max_x, max_y or a four-tuple