#NEWLINE# def _gen_georss_coords( value , swap = True , dims = 2 ) : #NEWLINE# #INDENT# latlons = ( float ( ll ) for ll in value . replace ( ',' , ' ' ) . split ( ) ) #NEWLINE# while True : #NEWLINE# #INDENT# t = [ next ( latlons ) , next ( latlons ) ] [ : : ( ( swap and ( - 1 ) ) or 1 ) ] #NEWLINE# if ( dims == 3 ) : #NEWLINE# #INDENT# t . append ( next ( latlons ) ) #NEWLINE# #UNINDENT# ( yield tuple ( t ) )