Beispiel #1
0
    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()
Beispiel #2
0
    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()
Beispiel #3
0
 def save(self, feature):
     filename = os.path.join(self.path, 'water.json')
     fp = open(filename, 'w')
     fp.write(record(dumps(feature)))
     fp.close()