#NEWLINE# def __getitem__( self , index ) : #NEWLINE# #INDENT# 'Gets the Geometry at the specified index.' #NEWLINE# if ( ( index < 0 ) or ( index >= self . geom_count ) ) : #NEWLINE# #INDENT# raise OGRIndexError ( ( 'index out of range: %s' % self ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return OGRGeometry ( clone_geom ( get_geom_ref ( self . _ptr , index ) ) , self . srs )