def convert_to_feature_collection(self):
if self.data['<STR_LIT:type>'] == '<STR_LIT>':<EOL><INDENT>return<EOL><DEDENT>if not self.embed:<EOL><INDENT>raise ValueError(<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>')<EOL><DEDENT>if '<STR_LIT>' not in self.data.keys():<EOL><INDENT>self.data = {'<STR_LIT:type>': '<STR_LIT>', '<STR_LIT>': self.data}<EOL><DEDENT>self.data = {'<STR_LIT:type>': '<STR_LIT>', '<STR_LIT>': [self.data]}<EOL>
Convert data into a FeatureCollection if it is not already.