#NEWLINE# def populate_evlrs( self ) : #NEWLINE# #INDENT# 'Catalogue the extended variable length records' #NEWLINE# self . evlrs = [ ] #NEWLINE# if ( not ( self . header . version in ( '1.3' , '1.4' ) ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# if ( self . header . version == '1.3' ) : #NEWLINE# #INDENT# if ( self . header . start_wavefm_data_rec != 0 ) : #NEWLINE# #INDENT# self . seek ( self . header . start_wavefm_data_rec , rel = False ) #NEWLINE# num_vlrs = 1 #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# num_vlrs = 0 #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if ( self . header . version == '1.4' ) : #NEWLINE# #INDENT# self . seek ( self . header . start_first_evlr , rel = False ) #NEWLINE# num_vlrs = self . get_header_property ( 'num_evlrs' ) #NEWLINE# #UNINDENT# #UNINDENT# for i in xrange ( num_vlrs ) : #NEWLINE# #INDENT# new_vlr = laspy . header . EVLR ( None , None , None ) #NEWLINE# new_vlr . build_from_reader ( num_vlrs ) #NEWLINE# self . evlrs . append ( new_vlr ) #NEWLINE# #UNINDENT# return