def append_marker(self, coord, strName=None, extraTag=False):
     if strName is None:
         strName = str(coord[0]) + '_' + str(coord[1])
     fileUtils.append_file('marker', self.markerPath, coord, strName, extraTag)
     myfile = open("marker_data", 'a')
     wr = csv.writer(myfile, quoting=csv.QUOTE_ALL)
     # coord=list(coord)
     # coord="Latitude"+str(coord[0])+','+"Longitude"+str(coord[1])
     # coord=coord.join("")
     coord_json=json.dumps(coord)
     self.marker_positions.append(coord_json)
     wr.writerow(self.marker_positions)
     myfile.close()
     print type(fileUtils.read_file)
Exemple #2
0
 def append_marker(self, coord, strName=None, extraTag=False):
     if strName is None:
         strName = str(coord[0]) + '_' + str(coord[1])
     fileUtils.append_file('marker', self.markerPath, coord, strName,
                           extraTag)
     myfile = open("marker_data", 'a')
     wr = csv.writer(myfile, quoting=csv.QUOTE_ALL)
     # coord=list(coord)
     # coord="Latitude"+str(coord[0])+','+"Longitude"+str(coord[1])
     # coord=coord.join("")
     coord_json = json.dumps(coord)
     self.marker_positions.append(coord_json)
     wr.writerow(self.marker_positions)
     myfile.close()
     print type(fileUtils.read_file)
Exemple #3
0
 def append_marker(self, coord, strName=None, extraTag=False):
     if strName is None:
         strName = str(coord[0]) + '_' + str(coord[1])
     fileUtils.append_file('marker', self.markerPath, coord, strName, extraTag)