Example #1
0
    def save_project(self, file_name=None, path=None):
        """Saves the project to a tXML file

        calls the function save_teaser_xml in data.TeaserXML.py

        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(utilities.get_default_path(), name)
            utilities.create_path(utilities.get_full_path(path))

        txml_out.save_teaser_xml(new_path, self)
Example #2
0
    def save_project(self, file_name=None, path=None):
        '''Saves the project to a tXML file

        calls the function save_teaser_xml in data.TeaserXML.py

        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))

        txml_out.save_teaser_xml(new_path, self)
Example #3
0
 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)
Example #4
0
 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)
Example #5
0
    def save_project(self, file_name=None, path=None):
        '''Saves the project to a tXML file

        calls the function save_teaser_xml in data.TeaserXML.py

        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))

        txml_out.save_teaser_xml(new_path, self)
Example #6
0
    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)
Example #7
0
    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)