#NEWLINE# def create_feature_collection( return_features ) : #NEWLINE# #INDENT# arg_type = type ( return_features ) #NEWLINE# if ( ( arg_type != list ) and ( arg_type == str ) ) : #NEWLINE# #INDENT# return dumps ( { #NEWLINE# #INDENT# 'type' : 'FeatureCollection' , #NEWLINE# 'features' : loads ( return_features ) , #NEWLINE# #UNINDENT# } , indent = 4 ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( return_features == list ) : #NEWLINE# #INDENT# return dumps ( { #NEWLINE# #INDENT# 'type' : 'FeatureCollection' , #NEWLINE# 'features' : return_features , #NEWLINE# #UNINDENT# } , indent = 4 )