def save_citygml(self, file_name=None, path=None): """Saves the project to a CityGML file calls the function save_gml in data.CityGML we make use of CityGML core and EnergyADE to store semantic information Parameters ---------- file_name : string name of the new file path : string if the Files should not be stored in OutputData, an alternative can be specified """ if file_name is None: name = self.name else: name = file_name if path is None: new_path = os.path.join(utilities.get_default_path(), name) else: new_path = os.path.join(path, name) utilities.create_path(utilities.get_full_path(path)) citygml_out.save_gml(self, new_path)
def save_citygml(self, file_name=None, path=None): '''Saves the project to a citygml file calls the function save_gml in data.CityGML we make use of CityGML core and EnergyADE to store semantic information Parameters ---------- file_name : string name of the new file path : string if the Files should not be stored in OutputData, an alternative can be specified ''' if file_name is None: name = self.name else: name = file_name if path is None: new_path = utilitis.get_full_path("OutputData") + "\\" + name else: new_path = path + "\\" + name utilitis.create_path(utilitis.get_full_path(path)) citygml_out.save_gml(self, new_path)
def click_save_button(self, project, path): if path.endswith("teaserXML"): teaser_xml.save_teaser_xml(path, project) print("Saved under: "+path) elif path.endswith("gml"): city_gml.save_gml(project, path) print("Saved under: "+path)
def click_save_button(self, project, path): if path.endswith("teaserXML"): teaser_xml.save_teaser_xml(path, project) print("Saved under: " + path) elif path.endswith("gml"): city_gml.save_gml(project, path) print("Saved under: " + path)
def click_save_button(self, project, path): ''' Saves a project with a given path. Parameters: ---------- project : project() root class path : str individual path where the xml file will be saved ''' path = str(path) if path.endswith("teaserXML"): teaser_xml.save_teaser_xml(path, project) print("Saved under: "+path) elif path.endswith("gml"): city_gml.save_gml(project, path) print("Saved under: "+path)
def click_save_button(self, project, path): ''' Saves a project with a given path. Parameters: ---------- project : project() root class path : str individual path where the xml file will be saved ''' path = str(path) if path.endswith("teaserXML"): teaser_xml.save_teaser_xml(path, project) print("Saved under: " + path) elif path.endswith("gml"): city_gml.save_gml(project, path) print("Saved under: " + path)