#NEWLINE# def read_featurecollection( obj , layer = 0 ) : #NEWLINE# #INDENT# features = read_features ( obj , layer = layer ) #NEWLINE# fc = { #NEWLINE# #INDENT# 'type' : 'FeatureCollection' , #NEWLINE# 'features' : [ ] , #NEWLINE# #UNINDENT# } #NEWLINE# fc [ 'features' ] = [ f for f in features ] #NEWLINE# return features