Exemple #1
0
    def save_final_query(self):
        """
        Save the query without any templates, usefull for bbox
        """

        # Which geometry at the end ?
        output_geometry_types = self.get_output_geometry_types()
        white_list_values = self.get_white_list_values()

        query = unicode(self.textEdit_query.toPlainText())
        nominatim = unicode(self.lineEdit_nominatim.text())
        bbox = self.get_bounding_box()

        # Delete any templates
        query = prepare_query(query=query,
                              extent=bbox,
                              nominatim_name=nominatim)

        # Save the query
        save_query_dialog = SaveQueryDialog(
            query=query,
            output_geometry_types=output_geometry_types,
            white_list_values=white_list_values)
        save_query_dialog.signal_new_query_successful.connect(
            self.signal_new_query_successful.emit)
        save_query_dialog.exec_()
Exemple #2
0
    def save_final_query(self):
        """
        Save the query without any templates, usefull for bbox
        """

        # Which geometry at the end ?
        output_geometry_types = self.get_output_geometry_types()
        white_list_values = self.get_white_list_values()

        query = unicode(self.textEdit_query.toPlainText())
        nominatim = unicode(self.lineEdit_nominatim.text())
        bbox = self.get_bounding_box()

        # Delete any templates
        query = prepare_query(
            query=query, extent=bbox, nominatim_name=nominatim)

        # Save the query
        save_query_dialog = SaveQueryDialog(
            query=query,
            output_geometry_types=output_geometry_types,
            white_list_values=white_list_values)
        save_query_dialog.signal_new_query_successful.connect(
            self.signal_new_query_successful.emit)
        save_query_dialog.exec_()
 def saveTemplateQuery(self):
     '''
     Save the query with templates if some are presents
     '''
     
     #Which geometry at the end ?
     outputGeomTypes = self.getOutputGeomTypes()
     whiteListValues = self.getWhiteListValues()
     
     query = unicode(self.textEdit_query.toPlainText())
     
     #save the query
     saveQueryDialog = SaveQueryDialog(query=query,outputGeomTypes=outputGeomTypes,whiteListValues=whiteListValues)
     saveQueryDialog.signalNewQuerySuccessful.connect(self.signalNewQuerySuccessful.emit)
     saveQueryDialog.exec_()
Exemple #4
0
    def save_template_query(self):
        """
        Save the query with templates if some are presents
        """

        # Which geometry at the end ?
        output_geometry_types = self.get_output_geometry_types()
        white_list_values = self.get_white_list_values()

        query = unicode(self.textEdit_query.toPlainText())

        # save the query
        save_query_dialog = SaveQueryDialog(
            query=query,
            output_geometry_types=output_geometry_types,
            white_list_values=white_list_values)
        save_query_dialog.signal_new_query_successful.connect(
            self.signal_new_query_successful.emit)
        save_query_dialog.exec_()
Exemple #5
0
    def save_template_query(self):
        """
        Save the query with templates if some are presents
        """

        # Which geometry at the end ?
        output_geometry_types = self.get_output_geometry_types()
        white_list_values = self.get_white_list_values()

        query = unicode(self.textEdit_query.toPlainText())

        # save the query
        save_query_dialog = SaveQueryDialog(
            query=query,
            output_geometry_types=output_geometry_types,
            white_list_values=white_list_values)
        save_query_dialog.signal_new_query_successful.connect(
            self.signal_new_query_successful.emit)
        save_query_dialog.exec_()
 def saveFinalQuery(self):
     '''
     Save the query without any templates, usefull for bbox
     '''
     
     #Which geometry at the end ?
     outputGeomTypes = self.getOutputGeomTypes()
     whiteListValues = self.getWhiteListValues()
     
     query = unicode(self.textEdit_query.toPlainText())
     nominatim = unicode(self.lineEdit_nominatim.text())
     bbox = self.getBBox()
     
     #Delete any templates
     query = Tools.PrepareQueryOqlXml(query=query, extent=bbox, nominatimName=nominatim)
     
     #Save the query
     saveQueryDialog = SaveQueryDialog(query=query,outputGeomTypes=outputGeomTypes,whiteListValues=whiteListValues)
     saveQueryDialog.signalNewQuerySuccessful.connect(self.signalNewQuerySuccessful.emit)
     saveQueryDialog.exec_()