Exemplo n.º 1
0
    def __init__(self, files, needPrj):
        QThread.__init__(self, QThread.currentThread())
        self.inFiles = files
        self.needPrj = needPrj

        self.mutex = QMutex()
        self.stopMe = 0
    def __init__(self, parentThread, parentObject, settings, axial, axial_id,
                 unlinks, id):
        QThread.__init__(self, parentThread)
        self.parent = parentObject
        self.running = False
        self.verification_settings = settings
        self.axial_layer = axial
        self.unlinks_layer = unlinks
        self.unlink_type = unlinks.geometryType()
        self.user_id = id
        self.axial_id = axial_id

        # verification globals
        self.problem_nodes = []
        # error types to identify:
        self.unlink_errors = {
            'duplicate geometry': [],
            'invalid geometry': [],
            'multiple lines': [],
            'single line': [],
            'no lines': [],
            'no line id': [],
            'unmatched line id': [],
            'same line id': []
        }
 def __init__(self, parent_thread, parent_object, layer, ref='', weight=''):
     QThread.__init__(self, parent_thread)
     self.parent = parent_object
     self.layer = layer
     self.abort = False
     self.id = ref
     self.weight = weight
Exemplo n.º 4
0
    def __init__(self, files, needPrj):
        QThread.__init__(self, QThread.currentThread())
        self.inFiles = files
        self.needPrj = needPrj

        self.mutex = QMutex()
        self.stopMe = 0
Exemplo n.º 5
0
 def __init__(self, connector):
     QThread.__init__(self)
     self.connector = connector
     self.url = None
     self.query = None
     self.queryForLayerProto = None
     self.nFeaturesReported = 0
Exemplo n.º 6
0
    def __init__(self, vfk_files):
        """
        Class for using multi-thread import of layers
        :type fileName: str
        :return:
        """
        QThread.__init__(self)

        self.vfk_files = vfk_files
Exemplo n.º 7
0
    def __init__(self, iface, outputDir, projectFile, saveToZip):
        QThread.__init__(self, QThread.currentThread())
        self.mutex = QMutex()
        self.stopMe = 0

        self.iface = iface
        self.outputDir = outputDir
        self.layersDir = outputDir + "/layers"
        self.projectFile = projectFile
        self.saveToZip = saveToZip
Exemplo n.º 8
0
    def __init__(self, bar, label, button, parameters):
        QThread.__init__(self)
        self.bar = bar
        self.label = label
        self.button = button
        self.parameters = parameters
        self.matrix_dem = []

        self.quit = False
        self.button.clicked.connect(self.cancel)
 def __init__(self, parentThread, parentObject, unlinks, id, axial,
              axial_id, threshold):
     QThread.__init__(self, parentThread)
     self.parent = parentObject
     self.running = False
     self.threshold = threshold
     self.axial_layer = axial
     self.unlinks_layer = unlinks
     self.unlink_type = unlinks.geometryType()
     self.user_id = id
     self.axial_id = axial_id
Exemplo n.º 10
0
    def __init__(self, search_text, mutex, parent=None, geom_filter=None, status_filter=None):
        QThread.__init__(self, parent)
        self.search_text = search_text
        self.geom_filter = geom_filter
        self.status_filter = status_filter

        self.searcher = Client()
        self.searcher.set_proxy(*QGISSettings.get_qgis_proxy())
        self.mutex = mutex

        self.img_cach = {}

        self.need_stop = False
Exemplo n.º 11
0
    def __init__(self,
                 search_text,
                 mutex,
                 parent=None,
                 geom_filter=None,
                 status_filter=None):
        QThread.__init__(self, parent)
        self.search_text = search_text
        self.geom_filter = geom_filter
        self.status_filter = status_filter

        self.searcher = Client()
        self.searcher.set_proxy(*QGISSettings.get_qgis_proxy())
        self.mutex = mutex

        self.img_cach = {}

        self.need_stop = False
Exemplo n.º 12
0
    def __init__(self,
                 terreno=None,
                 st=None,
                 progressiva=None,
                 prism=None,
                 ati=3,
                 cti=3):
        prismoide.__init__(self)
        QThread.__init__(self)

        if prism is None:
            self.terreno = terreno
            self.st = st
            self.progressiva = progressiva

            self.cti = cti
            self.ati = ati

            self.lastGeneratedIndex = 0

            sq = square()

            for i in range(0, len(self.terreno)):
                c = sq.copy()
                f = face()
                f.fromClosedCurve(c)
                f.setPos(
                    point(c.position.x(), c.position.y(), self.progressiva[i]))
                self.appendFace(f)
            self.start()

        elif type(prism) is prismoide:
            self.fromFaces(prism.faces)
            self.lastGeneratedIndex = len(prism.faces) - 1
            self.progressiva = prism.progressiva
            self.terreno = prism.terreno
            self.st = prism.st
            self.ati = prism.ati
            self.cti = prism.ati
Exemplo n.º 13
0
    def __init__(self, parentThread, parentObject, settings, axial, uid,
                 unlinks):
        QThread.__init__(self, parentThread)
        self.parent = parentObject
        self.running = False
        self.verification_settings = settings
        self.axial_layer = axial
        self.unlinks_layer = unlinks
        self.user_id = uid

        # verification globals
        self.problem_nodes = []
        # error types to identify:
        self.axial_errors = {
            'orphan': [],
            'island': [],
            'short line': [],
            'invalid geometry': [],
            'polyline': [],
            'coinciding points': [],
            'small line': [],
            'duplicate geometry': [],
            'overlap': []
        }
Exemplo n.º 14
0
 def __init__(self):
     QThread.__init__(self)
Exemplo n.º 15
0
 def __init__(self):
     QThread.__init__(self)
     self.git_url = ""
Exemplo n.º 16
0
 def __init__(self, parameters, stl_file, dem_matrix):
     QThread.__init__(self)
     self.parameters = parameters
     self.stl_file = stl_file
     self.matrix_dem = dem_matrix
     self.quit = False
Exemplo n.º 17
0
 def __init__(self, func):
     QThread.__init__(self, config.iface.mainWindow())
     self.func = func
     self.returnValue = []
     self.exception = None
Exemplo n.º 18
0
 def __init__(self,params,LayerTitle,iface,root):
     QThread.__init__(self)
     self.params=params
     self.LayerTitle=LayerTitle
     self.iface=iface
     self.root=root
 def __init__(self):
     QThread.__init__(self)
     self.emission_planner = None
Exemplo n.º 20
0
 def __init__(self, parameters):
     QThread.__init__(self)
     self.parameters = parameters
     self.matrix_dem = []
     self.quit = False
     self.baseModel = 2
 def __init__(self, parentThread, parentObject, layer, attribute):
     QThread.__init__(self, parentThread)
     self.parent = parentObject
     self.running = False
     self.layer = layer
     self.attribute = attribute
Exemplo n.º 22
0
 def __init__(self, func):
     QThread.__init__(self, config.iface.mainWindow())
     self.func = func
     self.returnValue = []
     self.exception = None