#NEWLINE# def __init__( self , * args ) : #NEWLINE# #INDENT# '\n        The initialization function may take an OGREnvelope structure, 4-element\n        tuple or list, or 4 individual arguments.\n        ' #NEWLINE# if ( len ( args ) == 1 ) : #NEWLINE# #INDENT# if isinstance ( args [ 0 ] , OGREnvelope ) : #NEWLINE# #INDENT# self . _envelope = args [ 0 ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( args [ 0 ] , ( tuple , list ) ) : #NEWLINE# #INDENT# if ( len ( args [ 0 ] ) != 4 ) : #NEWLINE# #INDENT# raise OGRException ( ( 'Incorrect number of tuple elements (%d).' % len ( a [ 0 ] ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _from_sequence ( args [ 0 ] ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# raise TypeError ( ( 'Incorrect type of argument: %s' % str ( type ( args [ 0 ] ) ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if ( len ( args ) == 4 ) : #NEWLINE# #INDENT# self . _from_sequence ( [ float ( a ) for a in args ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise OGRException ( ( 'Incorrect number (%d) of arguments.' % len ( args ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# if ( self . min_x > self . max_x ) : #NEWLINE# #INDENT# raise OGRException ( 'Envelope minimum X > maximum X.' ) #NEWLINE# #UNINDENT# if ( self . min_y > self . max_y ) : #NEWLINE# #INDENT# raise OGRException ( 'Envelope minimum Y > maximum Y.' )