def save(self, features): filename = os.path.join(self.path, 'island_label.json') fp = open(filename, 'w') for feature in features: fp.write(record(dumps(feature))) fp.close()
def save(self, values): filename = os.path.join(self.path, 'bathymetry.json') fp = open(filename, 'w') for value in values: fp.write(record(dumps(value))) fp.close()
def save(self, feature): filename = os.path.join(self.path, 'water.json') fp = open(filename, 'w') fp.write(record(dumps(feature))) fp.close()