Exemplo n.º 1
0
    def __init__(self, iface: QgisInterface):
        """Constructor.

        :param iface: An interface instance that will be passed to this class
            which provides the hook by which you can manipulate the QGIS
            application at run time.
        :type iface: QgsInterface
        """
        super().__init__()
        # Save reference to the QGIS interface
        self.iface = iface
        # initialize plugin directory
        self.plugin_dir = os.path.dirname(__file__)
        # initialize locale
        locale = QgsApplication.locale()
        locale_path = os.path.join(self.plugin_dir, 'i18n',
                                   '{}.qm'.format(locale))

        if os.path.exists(locale_path):
            self.translator = QTranslator()
            self.translator.load(locale_path)
            QCoreApplication.installTranslator(self.translator)

        # processing framework
        self.provider = RAlgorithmProvider()
Exemplo n.º 2
0
    def openHelp(self):
        locale = QgsApplication.locale()

        if locale in ['uk']:
            QDesktopServices.openUrl(QUrl(self.home))
        else:
            QDesktopServices.openUrl(QUrl(self.home))
Exemplo n.º 3
0
    def __init__(self, iface: QgisInterface):
        """Constructor.

        :param iface: An interface instance that will be passed to this class
            which provides the hook by which you can manipulate the QGIS
            application at run time.
        :type iface: QgsInterface
        """
        super().__init__()
        # Save reference to the QGIS interface
        self.iface = iface
        # initialize plugin directory
        self.plugin_dir = os.path.dirname(__file__)
        # initialize locale
        locale = QgsApplication.locale()
        locale_path = os.path.join(self.plugin_dir, 'i18n',
                                   '{}.qm'.format(locale))

        if os.path.exists(locale_path):
            self.translator = QTranslator()
            self.translator.load(locale_path)
            QCoreApplication.installTranslator(self.translator)

        self.toolbar = None
        self.layer_combo = None
        self.actions = []
        self.dock = None
        self.vertex_highlighter = VertexHighlighterManager()
        self.selection_handler = SelectionHandler(self)
        self.show_vertices_action = None
        self.show_topology_action = None
        self.show_dock_action = None
Exemplo n.º 4
0
    def openHelp(self):
        locale = QgsApplication.locale()

        if locale in ['uk']:
            QDesktopServices.openUrl(
                QUrl('https://github.com/alexbruy/photo2shape'))
        else:
            QDesktopServices.openUrl(
                QUrl('https://github.com/alexbruy/photo2shape'))
Exemplo n.º 5
0
    def openHelp(self):
        locale = QgsApplication.locale()

        if locale in ['uk']:
            QDesktopServices.openUrl(
                QUrl(self.home))
        else:
            QDesktopServices.openUrl(
                QUrl(self.home))
Exemplo n.º 6
0
    def openHelp(self):
        locale = QgsApplication.locale()

        if locale in ['uk']:
            QDesktopServices.openUrl(
                QUrl('https://github.com/alexbruy/photo2shape'))
        else:
            QDesktopServices.openUrl(
                QUrl('https://github.com/alexbruy/photo2shape'))
Exemplo n.º 7
0
    def __init__(self, iface):
        self.iface = iface

        locale = QgsApplication.locale()
        qmPath = "{}/i18n/photo2shape_{}.qm".format(pluginPath, locale)

        if os.path.exists(qmPath):
            self.translator = QTranslator()
            self.translator.load(qmPath)
            QCoreApplication.installTranslator(self.translator)
Exemplo n.º 8
0
    def __init__(self, iface):
        self.iface = iface

        locale = QgsApplication.locale()
        qmPath = "{}/i18n/statist_{}.qm".format(pluginPath, locale)

        if os.path.exists(qmPath):
            self.translator = QTranslator()
            self.translator.load(qmPath)
            QCoreApplication.installTranslator(self.translator)
    def __init__(self, iface):
        self.iface = iface

        locale = QgsApplication.locale()
        qmPath = "{}/i18n/rastertransparency_{}.qm".format(pluginPath, locale)

        if os.path.exists(qmPath):
            self.translator = QTranslator()
            self.translator.load(qmPath)
            QCoreApplication.installTranslator(self.translator)

        self.factory = TransparencyPanelFactory()
Exemplo n.º 10
0
    def __init__(self, iface):
        super(gtoPlugin, self).__init__()
        self.setObjectName(plugin_objectName)
        self.plugin_name = plugin_name
        self.plugin_dir = os.path.dirname(__file__)
        self.plugin_actions = []
        self.first_start = True
        # qgis interface
        self.iface = iface
        self.iface.mainWindow().showMinimized()
        # app info
        self.info = gtoInfo(self)
        # debug ?
        path = os.path.join(self.plugin_dir, 'log')
        self.debug = os.path.exists(path)
        if self.debug:
            self.info.do_backup()  # new session
            start_time = str(datetime.datetime.now()).split(".")[0]
            self.info.log("GTO version {0} loaded (UTC): ".format(self.get_version()), start_time)
            self.info.log(plugin_name, "debug:", self.debug)
        # DockWidget
        self.dockwidget = QDockWidget()
        self.dockwidget.setWindowTitle(plugin_name)
        self.dockwidget.setObjectName('GTODockWidget')
        self.dockwidget.setAllowedAreas(Qt.LeftDockWidgetArea | Qt.RightDockWidgetArea)
        self.iface.addDockWidget(Qt.LeftDockWidgetArea, self.dockwidget)
        self.app = gtoMain(self)
        # correct settings in statusbar:S
        try:
            wids = iface.mainWindow().statusBar().findChildren(QWidget)
            for wid in wids:
                if wid.objectName() == 'mOntheFlyProjectionStatusButton' or wid.objectName() == 'mMessageLogViewerButton':
                    if not wid.isHidden():
                        wid.setMaximumHeight(16777215)
                        wid.setSizePolicy(QSizePolicy.Preferred, QSizePolicy.Fixed)
        except:
            pass
        # initialize locale
        locale = QgsApplication.locale()
        locale_path = os.path.join(
            self.plugin_dir,
            'i18n',
            'plugin_{}.qm'.format(locale))

        if os.path.exists(locale_path):
            self.translator = QTranslator()
            self.translator.load(locale_path)

            if qVersion() > '3.0.0':
                QCoreApplication.installTranslator(self.translator)
        # run
        self.run()
Exemplo n.º 11
0
    return LDMPPlugin(iface)

# Function to get a temporary filename that handles closing the file created by 
# NamedTemporaryFile - necessary when the file is for usage in another process 
# (i.e. GDAL)
def GetTempFilename(suffix):
    f = NamedTemporaryFile(suffix=suffix, delete=False)
    f.close()
    return f.name

# initialize translation
i18n_dir = os.path.join(plugin_dir, 'i18n')
log(u'Starting trends.earth version {} (rev: {}, released {}).'.format(__version__, __revision__, __release_date__))

translator = QTranslator()
locale = QLocale(QgsApplication.locale())
log('Trying to load locale {} from {}.'.format(locale.name(), i18n_dir))
translator.load(locale, 'LDMP', prefix='.', directory=i18n_dir, suffix='.qm')
ret = QCoreApplication.installTranslator(translator)
if ret:
    log("Translator installed for {}.".format(locale.name()))
else:
    log("FAILED while trying to install translator for {}.".format(locale.name()))

# Ensure that the ext-libs, and binaries folder (if available) are near the 
# front of the path (important on Linux)
ext_libs_path = os.path.join(plugin_dir, 'ext-libs')
binaries_folder = QSettings().value("LDMP/binaries_folder", None)
sys.path, remainder = sys.path[:1], sys.path[1:]
site.addsitedir(ext_libs_path)
if binaries_folder:
Exemplo n.º 12
0
class MosaicRaster(QgsProcessingAlgorithm):

    LOC = QgsApplication.locale()

    def translate(self, string):
        return QCoreApplication.translate('Processing', string)

    def tr(self, *string):
        # Traduzir para o portugês: arg[0] - english (translate), arg[1] - português
        if self.LOC == 'pt':
            if len(string) == 2:
                return string[1]
            else:
                return self.translate(string[0])
        else:
            return self.translate(string[0])

    def createInstance(self):
        return MosaicRaster()

    def name(self):
        return 'mosaicraster'

    def displayName(self):
        return self.tr('Mosaic Raster', 'Mosaicar Raster')

    def group(self):
        return self.tr('LF Raster')

    def groupId(self):
        return 'lf_raster'

    def tags(self):
        return self.tr(
            'mosaic,merge,raster,combine,mosaik,mosaico,mesclar').split(',')

    def shortHelpString(self):
        txt_en = 'Creates raster mosaic: a combination or merge of two or more images.'
        txt_pt = 'Cria um mosaico: uma combinação ou mesclagem de duas ou mais imagens.'
        dic_BW = {
            'face':
            'iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAMMwAADDMBUlqVhwAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAIUSURBVEiJvZa9quJAGIbfMfEYTUSUQAqLYOnehJobsBTlHLbRQtKKlY3lObegxRa7pRdg7y0saiuoKAErMZif2Squ2eTEOCfsC1Pk+3uYb2YyQwCg1+u9UUqHAKoAOCQrB8ASwPt0Ov1JdF3/bprmj4QhoXp5eXnjTdMcUEr/Bw+WZQ15Smn1q4UIIZBlGaIoghBys2+3W1yv19u367rfeAAc6ww5jkOz2USj0YAoigH/aDTCbrfzpfCUUrAC2+02NE2LjPm3NjNQkiTU6/WHsFAgi1RVRSqVCthd171BwmozA/P5fMA2n88xm81g2zYAwHGccCAL9H43elosFrhcLpE5zMCwHMdxImtRSp8DptNpZDIZAIAgCAG/IAi+42Ga5q29nkin06FxgZqmodvtxooFgPF4jPV67bM9NcNnW384HJI7h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Du9AAAAAElFTkSuQmCC'
        }
        footer = '''<div align="right">
                      <p align="right"><b>''' + self.tr(
            'Author: Leandro Franca', 'Autor: Leandro França'
        ) + '''</b></p>
                      <div align="right">
                      <a target="_blank" rel="noopener noreferrer" href="https://www.udemy.com/user/leandro-luiz-silva-de-franca/"><img title="Udemy" src="data:image/png;base64,''' + dic_BW[
            'udemy'] + '''"></a> <a target="_blank" rel="noopener noreferrer" href="https://www.facebook.com/GEOCAPT/"><img title="Facebook" src="data:image/png;base64,''' + dic_BW[
                'face'] + '''"></a> <a target="_blank" rel="noopener noreferrer" href="https://www.youtube.com/channel/UCLrewDGciytcBG9r0OxTW2w"><img title="Youtube" src="data:image/png;base64,''' + dic_BW[
                    'youtube'] + '''"></a> <a target="_blank" rel="noopener noreferrer" href="https://www.researchgate.net/profile/Leandro_Franca2"><img title="ResearchGate" src="data:image/png;base64,''' + dic_BW[
                        'RG'] + '''"></a> <a target="_blank" rel="noopener noreferrer" href="https://github.com/LEOXINGU"><img title="GitHub" src="data:image/png;base64,''' + dic_BW[
                            'github'] + '''"></a> <a target="_blank" rel="noopener noreferrer" href="https://www.linkedin.com/in/leandro-fran%C3%A7a-93093714b/"><img title="Linkedin" src="data:image/png;base64,''' + dic_BW[
                                'linkedin'] + '''"></a> <a target="_blank" rel="noopener noreferrer" href="http://lattes.cnpq.br/8559852745183879"><img title="Lattes" src="data:image/png;base64,''' + dic_BW[
                                    'lattes'] + '''"></a>
                      </div>
                    </div>'''
        if self.LOC == 'pt':
            return txt_pt + footer
        else:
            return self.tr(txt_en) + footer

    RASTERLIST = 'RASTERLIST'
    CHANGERESOLUTION = 'CHANGERESOLUTION'
    RESOLUTION = 'RESOLUTION'
    OVERLAP = 'OVERLAP'
    NULLVALUE = 'NULLVALUE'
    RESAMPLING = 'RESAMPLING'
    CLIP = 'CLIP'
    FRAME = 'FRAME'
    MOSAIC = 'MOSAIC'
    OPEN = 'OPEN'

    def initAlgorithm(self, config=None):
        # INPUT
        self.addParameter(
            QgsProcessingParameterMultipleLayers(
                self.RASTERLIST,
                self.tr('Raster List', 'Lista de Rasters'),
                layerType=QgsProcessing.TypeRaster))

        self.addParameter(
            QgsProcessingParameterBoolean(self.CHANGERESOLUTION,
                                          self.tr('Change resolution',
                                                  'Alterar resolução'),
                                          defaultValue=False))

        self.addParameter(
            QgsProcessingParameterNumber(
                self.RESOLUTION,
                self.tr('New Resolution (meters)',
                        'Nova resolução espacial (metros)'),
                type=1,  #Double = 1 and Integer = 0
                defaultValue=100,
                optional=True))

        sobrep = [
            self.tr('First (faster)', 'Primeiro (mais rápido)'),
            self.tr('Average', 'Média'),
            self.tr('Median', 'Mediana'),
            self.tr('Maximum', 'Máximo'),
            self.tr('Minimum', 'Mínimo')
        ]

        self.addParameter(
            QgsProcessingParameterEnum(self.OVERLAP,
                                       self.tr('Ovelap', 'Sobreposição'),
                                       options=sobrep,
                                       defaultValue=0))

        interp = [
            self.tr('Nearest neighbor', 'Vizinho mais próximo'),
            self.tr('Bilinear'),
            self.tr('Bicubic', 'Bicúbica')
        ]

        self.addParameter(
            QgsProcessingParameterEnum(self.RESAMPLING,
                                       self.tr('Interpolation',
                                               'Interpolação'),
                                       options=interp,
                                       defaultValue=0))

        self.addParameter(
            QgsProcessingParameterNumber(
                self.NULLVALUE,
                self.tr('Null value', 'Valor nulo'),
                type=0,  #Double = 1 and Integer = 0
                defaultValue=0))

        self.addParameter(
            QgsProcessingParameterBoolean(self.CLIP,
                                          self.tr('Clip by frame',
                                                  'Cortar pela moldura'),
                                          defaultValue=False))

        self.addParameter(
            QgsProcessingParameterFeatureSource(
                self.FRAME,
                self.tr('Frame', 'Moldura'), [QgsProcessing.TypeVectorPolygon],
                optional=True))

        # OUTPUT
        self.addParameter(
            QgsProcessingParameterFileDestination(self.MOSAIC,
                                                  self.tr('Mosaic', 'Mosaico'),
                                                  fileFilter='.tif'))

        self.addParameter(
            QgsProcessingParameterBoolean(self.OPEN,
                                          self.tr('Load mosaic',
                                                  'Carregar mosaico'),
                                          defaultValue=True))

    # Função de Interpolação
    def Interpolar(self, X, Y, BAND, origem, resol_X, resol_Y, metodo, nulo):
        if metodo == 'nearest':
            linha = int(round((origem[1] - Y) / resol_Y - 0.5))
            coluna = int(round((X - origem[0]) / resol_X - 0.5))
            if BAND[linha][coluna] != nulo:
                return float(BAND[linha][coluna])
            else:
                return nulo
        elif metodo == 'bilinear':
            nlin = len(BAND)
            ncol = len(BAND[0])
            I = (origem[1] - Y) / resol_Y - 0.5
            J = (X - origem[0]) / resol_X - 0.5
            di = I - floor(I)
            dj = J - floor(J)
            if I < 0:
                I = 0
            if I > nlin - 1:
                I = nlin - 1
            if J < 0:
                J = 0
            if J > ncol - 1:
                J = ncol - 1
            if (BAND[int(floor(I)):int(ceil(I)) + 1,
                     int(floor(J)):int(ceil(J)) + 1] == nulo).sum() == 0:
                Z = (1 - di) * (1 - dj) * BAND[int(floor(I))][int(
                    floor(J))] + (1 - dj) * di * BAND[int(ceil(I))][int(
                        floor(J))] + (1 - di) * dj * BAND[int(floor(I))][int(
                            ceil(J))] + di * dj * BAND[int(ceil(I))][int(
                                ceil(J))]
                return float(Z)
            else:
                return nulo
        elif metodo == 'bicubic':
            nlin = len(BAND)
            ncol = len(BAND[0])
            I = (origem[1] - Y) / resol_Y - 0.5
            J = (X - origem[0]) / resol_X - 0.5
            di = I - floor(I)
            dj = J - floor(J)
            I = int(floor(I))
            J = int(floor(J))
            if I < 2:
                I = 2
            if I > nlin - 3:
                I = nlin - 3
            if J < 2:
                J = 2
            if J > ncol - 3:
                J = ncol - 3
            if (BAND[I - 1:I + 3, J - 1:J + 3] == nulo).sum() == 0:
                MatrInv = np.mat(
                    [[-1 / 6, 0.5, -0.5, 1 / 6], [0.5, -1., 0.5, 0.],
                     [-1 / 3, -0.5, 1., -1 / 6], [0., 1., 0., 0.]]
                )  # resultado da inversa: (np.mat([[-1, 1, -1, 1], [0, 0, 0, 1], [1, 1, 1, 1], [8, 4, 2, 1]])).I #
                MAT = np.mat([[
                    BAND[I - 1, J - 1], BAND[I - 1, J], BAND[I - 1, J + 1],
                    BAND[I - 2, J + 2]
                ], [
                    BAND[I, J - 1], BAND[I, J], BAND[I, J + 1], BAND[I, J + 2]
                ],
                              [
                                  BAND[I + 1, J - 1], BAND[I + 1, J],
                                  BAND[I + 1, J + 1], BAND[I + 1, J + 2]
                              ],
                              [
                                  BAND[I + 2, J - 1], BAND[I + 2, J],
                                  BAND[I + 2, J + 1], BAND[I + 2, J + 2]
                              ]])
                coef = MatrInv * MAT.transpose()
                # Horizontal
                pi = coef[0, :] * pow(dj, 3) + coef[1, :] * pow(
                    dj, 2) + coef[2, :] * dj + coef[3, :]
                # Vertical
                coef2 = MatrInv * pi.transpose()
                pj = coef2[0] * pow(di, 3) + coef2[1] * pow(
                    di, 2) + coef2[2] * di + coef2[3]
                return float(pj)
            else:
                return nulo

    def processAlgorithm(self, parameters, context, feedback):

        # inputs
        rasters = self.parameterAsLayerList(parameters, self.RASTERLIST,
                                            context)
        if rasters is None:
            raise QgsProcessingException(
                self.invalidSourceError(parameters, self.RASTERLIST))

        reamostragem = self.parameterAsEnum(parameters, self.RESAMPLING,
                                            context)
        reamostragem = ['nearest', 'bilinear', 'bicubic'][reamostragem]

        sobrep = self.parameterAsEnum(parameters, self.OVERLAP, context)

        muda_res = self.parameterAsBool(parameters, self.CHANGERESOLUTION,
                                        context)

        resolucao = self.parameterAsDouble(parameters, self.RESOLUTION,
                                           context)

        valor_nulo = self.parameterAsDouble(parameters, self.NULLVALUE,
                                            context)

        moldura = self.parameterAsDouble(parameters, self.CLIP, context)

        if moldura:
            vlayer = self.parameterAsVectorLayer(parameters, self.FRAME,
                                                 context)
            if vlayer is None:
                raise QgsProcessingException(
                    self.invalidSourceError(parameters, self.FRAME))

        # output

        Output = self.parameterAsFileOutput(parameters, self.MOSAIC, context)

        Carregar = self.parameterAsBool(parameters, self.OPEN, context)

        lista = []
        for raster_lyr in rasters:
            lista += [raster_lyr.dataProvider().dataSourceUri()]
        if len(lista) < 1:
            raise QgsProcessingException(
                self.tr('At least one raster must be selected!',
                        'Pelo menos um raster deve ser selecionado!'))
        if len(lista) == 1:
            sobrep = 0  # apenas um raster (sem sobreposicao)

        # Gerar geometria para cada raster
        geoms = []
        SRC = []
        n_bands = []
        GDT = []
        nulos = []
        XRES, YRES = [], []
        for item in lista:
            image = gdal.Open(item)
            SRC += [QgsCoordinateReferenceSystem(image.GetProjection())]  # wkt
            ulx, xres, xskew, uly, yskew, yres = image.GetGeoTransform()
            cols = image.RasterXSize
            rows = image.RasterYSize
            n_bands += [image.RasterCount]
            GDT += [image.GetRasterBand(1).DataType]
            nulos += [image.GetRasterBand(1).GetNoDataValue()]
            XRES += [xres]
            YRES += [yres]
            image = None  # Close image
            # Creating BBox
            coord = [[
                QgsPointXY(ulx, uly),
                QgsPointXY(ulx + cols * xres, uly),
                QgsPointXY(ulx + cols * xres, uly + rows * yres),
                QgsPointXY(ulx, uly + rows * yres),
                QgsPointXY(ulx, uly)
            ]]
            geom = QgsGeometry.fromPolygonXY(coord)
            geoms += [geom]

        ## Validar dados de entrada
        # Mesmo numero de bandas
        if not n_bands.count(n_bands[0]) == len(n_bands):
            raise QgsProcessingException(
                self.tr('The images must have the same number of bands!',
                        'As imagens devem ter o mesmo número de bandas!'))
        # Mesmo SRC
        if not SRC.count(SRC[0]) == len(SRC):
            raise QgsProcessingException(
                self.tr('The images must have the same CRS!',
                        'As imagens devem ter o mesmo SRC!'))
        # Mesmo GDT
        if not GDT.count(GDT[0]) == len(GDT):
            raise QgsProcessingException(
                self.tr('The images must have the same data type!',
                        'As imagens devem ter o tipo de dado!'))
        # Mesmo valor nulo
        if not nulos.count(nulos[0]) == len(nulos):
            raise QgsProcessingException(
                self.tr(
                    'The images must have the same definied null value!',
                    'As imagens devem ter o mesmo valor para definir pixel nulo!'
                ))

        # Dados para o raster de saída
        prj = SRC[0].toWkt()
        n_bands = n_bands[0]
        GDT = GDT[0]
        xres = np.mean(XRES)
        yres = np.mean(YRES)
        NULO = valor_nulo
        if valor_nulo == -1:
            valor_nulo = nulos[0] if nulos[0] is not None else 0

        if moldura:  # Pegar extensão X e Y da moldura
            # SRC da moldura deve ser o mesmo dos raster
            if vlayer.sourceCrs() != QgsCoordinateReferenceSystem(prj):
                raise QgsProcessingException(
                    self.tr(
                        "The frame's CRS must be iqual to the rasters' CRS!",
                        'O SRC da moldura deve ser igual ao SRC dos rasters!'))
            for feat in vlayer.getFeatures():
                moldura_geom = feat.geometry()
                break
            moldura_rect = moldura_geom.boundingBox()
            y_min = moldura_rect.yMinimum()
            y_max = moldura_rect.yMaximum()
            x_min = moldura_rect.xMinimum()
            x_max = moldura_rect.xMaximum()
        else:  # Mesclar geometrias e obter a extensão
            new_geom = QgsGeometry()
            new_geom = new_geom.unaryUnion(geoms)
            extensao = new_geom.boundingBox()
            # Coodenadas máxima e mínima da extensão
            y_min = extensao.yMinimum()
            y_max = extensao.yMaximum()
            x_min = extensao.xMinimum()
            x_max = extensao.xMaximum()

        # Transformar resolucao de metros para graus, se o SRC for Geográfico
        src_qgis = QgsCoordinateReferenceSystem(prj)
        if src_qgis.isGeographic():
            EPSG = int(src_qgis.authid().split(':')[-1])
            proj_crs = CRS.from_epsg(EPSG)
            a = proj_crs.ellipsoid.semi_major_metre
            f = 1 / proj_crs.ellipsoid.inverse_flattening
            e2 = f * (2 - f)
            N = a / np.sqrt(1 - e2 * (np.sin(
                (y_min + y_max) / 2))**2)  # Raio de curvatura 1º vertical
            M = a * (1 - e2) / (1 - e2 * (np.sin((y_min + y_max) / 2))**2)**(
                3 / 2.)  # Raio de curvatura meridiana
            R = np.sqrt(M * N)  # Raio médio de Gauss
            theta = resolucao / R
            resolucao = np.degrees(theta)  # Radianos para graus

        # Definir n_col, n_lin e resolucao
        if moldura:
            if muda_res:
                n_lin = round((y_max - y_min) / abs(resolucao))
                n_col = round((x_max - x_min) / abs(resolucao))
            else:
                n_lin = round((y_max - y_min) / abs(yres))
                n_col = round((x_max - x_min) / abs(xres))
            xres = (x_max - x_min) / n_col
            yres = -(y_max - y_min) / n_lin
        else:
            if muda_res:
                n_lin = round((y_max - y_min) / abs(resolucao))
                n_col = round((x_max - x_min) / abs(resolucao))
                xres = resolucao
                yres = -resolucao
            else:
                n_lin = round((y_max - y_min) / abs(yres))
                n_col = round((x_max - x_min) / abs(xres))
                xres = (x_max - x_min) / n_col
                yres = -(y_max - y_min) / n_lin

        feedback.pushInfo(
            self.tr('Resolution: ', 'Resolução: ') + str(n_lin) + 'x' +
            str(n_col))
        # Geotransform do Mosaico
        ulx = x_min
        uly = y_max
        xskew, yskew = 0, 0
        geotransform = [ulx, xres, xskew, uly, yskew, yres]
        origem = (ulx, uly)
        resol_X = abs(xres)
        resol_Y = abs(yres)
        # Numeração das Imagens
        valores = list(range(1, len(lista) + 1))

        # Definição de áreas de varredura
        feedback.pushInfo(
            self.tr('Defining mosaic filling areas...',
                    'Definindo áreas de preenchimento do mosaico...'))

        # Gerar combinações dos Rasters
        if sobrep != 0:
            combs = []
            feedback.pushInfo(
                self.tr('Creating combinations...', 'Gerando combinações...'))
            for k in range(1, 5):
                combs += list(combinations(valores, k))
                if feedback.isCanceled():
                    break
            # Armazenar geometrias exclusivas de cada combinação
            classes = {}
            feedback.pushInfo(
                self.tr('Indentifying combinations...',
                        'Identificando combinações...'))
            Percent = 100.0 / (len(combs))
            current = 0

            for comb in combs:
                if len(comb) == 1:
                    geom1 = geoms[comb[0] - 1]
                    lista_outras = []
                    for geom in geoms:
                        if geom1 != geom:
                            lista_outras += [geom]
                    outras = QgsGeometry()
                    outras = outras.unaryUnion(lista_outras)
                    diferença = geom1.difference(outras)
                    if not diferença.isEmpty():
                        classes[comb] = {'geom': diferença}
                elif len(comb) < len(valores):
                    intersecao = geoms[comb[0] - 1]
                    sentinela = True
                    for ind in comb[1:]:
                        geom = geoms[ind - 1]
                        if geom.intersects(intersecao):
                            intersecao = intersecao.intersection(geom)
                        else:
                            sentinela = False
                            continue
                    lista_outras = []
                    for valor in valores:
                        if valor not in comb:
                            lista_outras += [geoms[valor - 1]]
                    outras = QgsGeometry()
                    outras = outras.unaryUnion(lista_outras)
                    if sentinela:
                        diferença = intersecao.difference(outras)
                        if not diferença.isEmpty():
                            classes[comb] = {'geom': diferença}
                else:
                    intersecao = geoms[comb[0] - 1]
                    sentinela = True
                    for ind in comb[1:]:
                        geom = geoms[ind - 1]
                        if geom.intersects(intersecao):
                            intersecao = intersecao.intersection(geom)
                        else:
                            sentinela = False
                            continue
                    if sentinela:
                        classes[comb] = {'geom': intersecao}
                if feedback.isCanceled():
                    break
                current += 1
                feedback.setProgress(int(current * Percent))
        else:
            # Gerar geometrias por área sem cálculo de sobreposição ("first")
            combs = np.array(valores)[:, np.newaxis]
            classes = {}
            acumulado = geoms[combs[0][0] - 1]
            classes[(1, )] = {'geom': acumulado}
            for k in range(1, len(combs)):
                comb = combs[k]
                geom = geoms[comb[0] - 1]
                diferenca = geom.difference(acumulado)
                classes[(comb[0], )] = {'geom': diferenca}
                acumulado = acumulado.combine(geom)
                if feedback.isCanceled():
                    break

        # Gerar lista com os valores classificados
        Percent = 100.0 / (len(classes))
        current = 0
        for classe in classes:
            feedback.pushInfo(
                (self.tr('Classifying class {}...',
                         'Classificando classe {}...')).format(str(classe)))
            geom = classes[classe]['geom']
            if moldura:
                geom = geom.intersection(moldura_geom)
            if geom.type() == 2:
                if geom.isMultipart():
                    coords = geom.asMultiPolygon()[0][0]
                else:
                    coords = geom.asPolygon()[0]
            else:
                del classes[classe]
                continue
            caminho = []
            for ponto in coords:
                linha = (origem[1] - ponto.y()) / resol_Y
                coluna = (ponto.x() - origem[0]) / resol_X
                caminho += [(linha, coluna)]
            p = path.Path(caminho)
            box = geom.boundingBox()
            uly = box.yMaximum()
            lry = box.yMinimum()
            ulx = box.xMinimum()
            lrx = box.xMaximum()
            # Limites de Varredura
            row_ini = int(round((origem[1] - uly) / resol_Y - 0.5)) - 1
            row_fim = int(round((origem[1] - lry) / resol_Y - 0.5)) + 1
            col_ini = int(round((ulx - origem[0]) / resol_X - 0.5)) - 1
            col_fim = int(round((lrx - origem[0]) / resol_X - 0.5)) + 1
            lin, col = np.meshgrid(np.arange(row_ini, row_fim),
                                   np.arange(col_ini, col_fim))
            LIN = lin.flatten()[:, np.newaxis] + 0.5  # centro do pixel
            COL = col.flatten()[:, np.newaxis] + 0.5
            pixels_center = np.hstack((LIN, COL))
            # Verificando pixels dentro de poligono
            flags = p.contains_points(pixels_center)
            pixels_x = LIN.flatten() * flags
            pixels_y = COL.flatten() * flags
            pixels_x = (pixels_x[pixels_x > 0] - 0.5).astype('int')[:,
                                                                    np.newaxis]
            pixels_y = (pixels_y[pixels_y > 0] - 0.5).astype('int')[:,
                                                                    np.newaxis]
            pixels = np.hstack((pixels_x, pixels_y))
            classes[classe]['pixels'] = pixels
            current += 1
            feedback.setProgress(int(current * Percent))

        # Criar Raster
        Driver = gdal.GetDriverByName('GTiff').Create(Output, n_col, n_lin,
                                                      n_bands, GDT)
        Driver.SetGeoTransform(geotransform)
        Driver.SetProjection(prj)

        # Mosaicar por banda
        Percent = 100.0 / (n_lin * n_col * n_bands)
        current = 0

        for k in range(n_bands):
            feedback.pushInfo(
                (self.tr('Creating band {}...',
                         'Criando banda {}...')).format(str(k + 1)))
            # Criar Array do mosaico
            tipo = gdal_array.GDALTypeCodeToNumericTypeCode(GDT)
            inteiro = True if GDT in (gdal.GDT_Byte, gdal.GDT_UInt16,
                                      gdal.GDT_Int16, gdal.GDT_UInt32,
                                      gdal.GDT_Int32) else False
            banda = np.ones(
                (n_lin, n_col),
                dtype=tipo) * (int(valor_nulo) if inteiro else valor_nulo)
            imgs = {}
            # Para cada classe abrir banda da(s) imagem(ns)
            for classe in classes:
                # Deixando somente imagens a serem utilizadas
                for item in valores:
                    if (item not in classe) and (item in imgs):
                        del imgs[item]
                # Preenchendo dados da imagem no dicionário
                for img in classe:
                    if img not in imgs or len(lista) == 1:
                        img_path = lista[img - 1]
                        image = gdal.Open(img_path)
                        ulx, xres, xskew, uly, yskew, yres = image.GetGeoTransform(
                        )
                        img_origem = (ulx, uly)
                        img_resol_X = abs(xres)
                        img_resol_Y = abs(yres)
                        img_band = image.GetRasterBand(k + 1).ReadAsArray()
                        imgs[img] = {
                            'band': img_band,
                            'xres': img_resol_X,
                            'yres': img_resol_Y,
                            'origem': img_origem
                        }
                        image = None

                if sobrep == 0:  # Se for "primeiro", interpolar apenas da primeira img da comb, caso contrário
                    img = classe[0]
                    # Para cada pixel da classe
                    for px in classes[classe]['pixels']:
                        lin, col = px
                        X = origem[0] + resol_X * (col + 0.5)
                        Y = origem[1] - resol_Y * (lin + 0.5)
                        Interpolado = self.Interpolar(X, Y, imgs[img]['band'],
                                                      imgs[img]['origem'],
                                                      imgs[img]['xres'],
                                                      imgs[img]['yres'],
                                                      reamostragem, valor_nulo)
                        if Interpolado != valor_nulo:
                            banda[lin][col] = round(
                                Interpolado) if inteiro else Interpolado

                        if feedback.isCanceled():
                            break
                        current += 1
                        feedback.setProgress(int(current * Percent))

                else:  # Para cada pixel da classe interpolar o valor da banda de cada img
                    for px in classes[classe]['pixels']:
                        lin, col = px
                        X = origem[0] + resol_X * (col + 0.5)
                        Y = origem[1] - resol_Y * (lin + 0.5)
                        interp_values = []
                        for img in imgs:
                            Interpolado = self.Interpolar(
                                X, Y, imgs[img]['band'], imgs[img]['origem'],
                                imgs[img]['xres'], imgs[img]['yres'],
                                reamostragem, valor_nulo)
                            if Interpolado != valor_nulo:
                                interp_values += [Interpolado]
                        # Calcular o valor agregado (0:first, 1:average, 2:median, 3:min, 4:max) e inserir na banda (se byte, arredondar)
                        if interp_values:
                            if sobrep == 1:
                                result = np.mean(interp_values)
                            elif sobrep == 2:
                                result = np.median(interp_values)
                            elif sobrep == 3:
                                result = np.min(interp_values)
                            elif sobrep == 4:
                                result = np.max(interp_values)
                            banda[lin][col] = round(
                                result) if inteiro else result

                        if feedback.isCanceled():
                            break
                        current += 1
                        feedback.setProgress(int(current * Percent))

            # Salvar banda
            outband = Driver.GetRasterBand(k + 1)
            feedback.pushInfo(
                self.tr('Writing Band {}...'.format(k + 1),
                        'Escrevendo Banda {}...'.format(k + 1)))
            outband.WriteArray(banda)
            if NULO != -1:
                outband.SetNoDataValue(valor_nulo)

        # Salvar e Fechar Raster
        Driver.FlushCache()  # Escrever no disco
        Driver = None  # Salvar e fechar

        feedback.pushInfo(
            self.tr('Operation completed successfully!',
                    'Operação finalizada com sucesso!'))
        feedback.pushInfo('Leandro França - Eng Cart')
        self.CAMINHO = Output
        self.CARREGAR = Carregar
        return {self.MOSAIC: Output}

    # Carregamento de arquivo de saída
    def postProcessAlgorithm(self, context, feedback):
        if self.CARREGAR:
            rlayer = QgsRasterLayer(self.CAMINHO, self.tr('Mosaic', 'Mosaico'))
            QgsProject.instance().addMapLayer(rlayer)
        return {}
Exemplo n.º 13
0
class MemorialDescritivo(QgisAlgorithm):
    """
    This algorithm takes three vector layers (point, line, and polygon) 
    that define a specific ownership and creates an HTML file with the
    descriptive characteristics of the area.
    """
    HTML = 'HTML'
    INPUT1 = 'INPUT1'
    INPUT2 = 'INPUT2'
    INPUT3 = 'INPUT3'

    LOC = QgsApplication.locale()

    texto_inicial = '''
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="content-type">
  <title>descritivo</title>
</head>
<body>
<div style="text-align: center;"><span style="font-weight: bold;"><br>
<img src="data:image/jpg;base64,/9j/4AAQSkZJRgABAQEAeAB4AAD/4QBYRXhpZgAATU0AKgAAAAgABAExAAIAAAARAAAAPlEQAAEAAAABAQAAAFERAAQAAAABAAABpFESAAQAAAABAAABpAAAAAB3d3cuaW5rc2NhcGUub3JnAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDA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sMdtK10umstm9kzQO4RP3sTjeJIHGUUjBGa9Z8PfDXSfD2qvqQhkvdWmJaS/u2864ZioVipPEYKqAVjCrgAYwAKKKZJv0UUUwP/Z"><br>
MINIST&Eacute;RIO DA DEFESA</span><br style="font-weight: bold;">
<span style="font-weight: bold;">EX&Eacute;RCITO BRASILEIRO</span><br style="font-weight: bold;">
<span style="font-weight: bold;">DEPARTAMENTO DE CI&Ecirc;NCIA E TECNOLOGIA</span><br style="font-weight: bold;">
<span style="font-weight: bold;">3&ordm; CENTRO DE GEOINFORMA&Ccedil;&Atilde;O</span><br>
<br></div>
<p class="western"
 style="margin-bottom: 0.0001pt; text-align: center;"
 align="center"><b><span style="font-size: 12pt;">MEMORIAL
DESCRITIVO</span></b><o:p></o:p></p>
<p class="western" style="margin-bottom: 0.0001pt;"><o:p>&nbsp;</o:p></p>
<table class="MsoTableGrid"
 style="border: medium none ; border-collapse: collapse;"
 border="0" cellpadding="0" cellspacing="0">
  <tbody>
    <tr style="">
      <td style="padding: 0cm 5.4pt; width: 247.85pt;"
 valign="top" width="330">
      <p class="western" style="margin-bottom: 0.0001pt;"><b>Im&oacute;vel:
</b>[IMOVEL]<o:p></o:p></p>
      </td>
      <td style="padding: 0cm 5.4pt; width: 176.85pt;"
 valign="top" width="236">
      <p class="western" style="margin-bottom: 0.0001pt;"><b>Comarca:</b>
[COMARCA]<o:p></o:p></p>
      </td>
    </tr>
    <tr style="">
      <td colspan="2"
 style="padding: 0cm 5.4pt; width: 424.7pt;" valign="top"
 width="566">
      <p class="western" style="margin-bottom: 0.0001pt;"><b>Propriet&aacute;rio:</b>
[PROPRIETARIO]<o:p></o:p></p>
      </td>
    </tr>
    <tr style="">
      <td style="padding: 0cm 5.4pt; width: 247.85pt;"
 valign="top" width="330">
      <p class="western" style="margin-bottom: 0.0001pt;"><b>UF:</b>
[UF]<b><o:p></o:p></b></p>
      </td>
      <td style="padding: 0cm 5.4pt; width: 176.85pt;"
 valign="top" width="236">
      <p class="western" style="margin-bottom: 0.0001pt;"><b>Munic&iacute;pio:
      </b>[MUNICIPIO]<o:p></o:p></p>
      </td>
    </tr>
    <tr style="">
      <td colspan="2"
 style="padding: 0cm 5.4pt; width: 424.7pt;" valign="top"
 width="566">
      <p class="western" style="margin-bottom: 0.0001pt;"><b>Matr&iacute;cula(s):</b>
[MATRICULAS]<o:p></o:p></p>
      </td>
    </tr>
    <tr style="">
      <td style="padding: 0cm 5.4pt; width: 247.85pt;"
 valign="top" width="330">
      <p class="western" style="margin-bottom: 0.0001pt;"><b>&Aacute;rea
(m<sup>2</sup>): </b>[AREA]<o:p></o:p></p>
      </td>
      <td style="padding: 0cm 5.4pt; width: 176.85pt;"
 valign="top" width="236">
      <p class="western" style="margin-bottom: 0.0001pt;"><b>Per&iacute;metro
(m):</b> [PERIMETRO]<o:p></o:p></p>
      </td>
    </tr>
    <tr style="">
      <td colspan="2"
 style="padding: 0cm 5.4pt; width: 424.7pt;" valign="top"
 width="566">
      <p class="western" style="margin-bottom: 0.0001pt;"><b>Sistema
de Refer&ecirc;ncia de Coordenadas:</b> [SRC]<b><o:p></o:p></b></p>
      </td>
    </tr>
  </tbody>
</table>
<p class="western" style="margin-bottom: 0.0001pt;"><o:p>&nbsp;</o:p></p>
<p class="western"
 style="margin-bottom: 0.0001pt; text-align: justify;">Inicia-se
a descri&ccedil;&atilde;o deste per&iacute;metro n'''

    texto_var1 = '''o
v&eacute;rtice <b>[Vn]</b>, de
coordenadas <b>N [Nn] m </b>e <b>E [En] m</b>,
[Descr_k], deste, segue
confrontando com [Confront_k], com os seguintes azimutes planos e
dist&acirc;ncias: [Az_n]
e [Dist_n] m at&eacute; '''

    texto_var2 = '''o v&eacute;rtice<span
 style="color: red;"> </span><b>[Vn]</b>,
de
coordenadas <b>N [Nn] m </b>e <b>E [En] m</b>;
[Az_n] e [Dist_n] m at&eacute; '''

    texto_final = '''o v&eacute;rtice <b>[P-01]</b>, de coordenadas <b>N
[N1] m </b>e <b>E [E1] m</b>, ponto
inicial da descri&ccedil;&atilde;o deste per&iacute;metro.
Todas as coordenadas aqui descritas est&atilde;o
georreferenciadas ao Sistema Geod&eacute;sico Brasileiro, tendo
como SGR o <b>SIRGAS2000</b>,
e encontram-se projetadas no Sistema UTM, fuso [FUSO] e
hemisf&eacute;rio [HEMISFERIO], a
partir das quais todos os azimutes e dist&acirc;ncias,
&aacute;rea e per&iacute;metro foram
calculados.<o:p></o:p></p>
<p class="western"
 style="margin-bottom: 0.0001pt; text-align: justify;"><o:p>&nbsp;</o:p></p>
<p class="western"
 style="margin-bottom: 0.0001pt; text-align: justify;"><o:p>&nbsp;</o:p></p>
<p class="western"
 style="margin-bottom: 0.0001pt; text-align: right;"
 align="right">Olinda - PE, [DATA].<o:p></o:p></p>
<p class="western" style="margin-bottom: 0.0001pt;"><o:p>&nbsp;</o:p></p>
<p class="western" style="margin-bottom: 0.0001pt;"><o:p>&nbsp;</o:p></p>
<p class="western"
 style="margin: 0cm 0cm 0.0001pt; text-align: center;"
 align="center">___________________________________________<o:p></o:p></p>
<p class="western"
 style="margin: 0cm 0cm 0.0001pt; text-align: center;"
 align="center">[RESP_TEC]<o:p></o:p></p>
<p class="western"
 style="margin: 0cm 0cm 0.0001pt; text-align: center;"
 align="center">[CREA]<o:p></o:p></p>
<p class="western"
 style="margin: 0cm 0cm 0.0001pt; text-align: center;"
 align="center">RESPONS&Aacute;VEL T&Eacute;CNICO<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</body>
</html>
'''

    def translate(self, string):
        return QCoreApplication.translate('Processing', string)

    def tr(self, *string):
        # Traduzir para o portugês: arg[0] - english (translate), arg[1] - português
        if self.LOC == 'pt':
            if len(string) == 2:
                return string[1]
            else:
                return self.translate(string[0])
        else:
            return self.translate(string[0])

    def createInstance(self):
        return MemorialDescritivo()

    def name(self):
        return 'memorialdescritivo'

    def displayName(self):
        return self.tr('Descriptive Memorial', 'Memorial Descritivo')

    def group(self):
        return self.tr('LF Documents', 'LF Documentos')

    def groupId(self):
        return 'lf_documents'

    def shortHelpString(self):
        txt_en = 'Elaboration of Descriptive Memorials based on vector layers that define a property.'
        txt_pt = 'Elaboração de Memorial Descritivo a partir de camadas vetorias que definem uma propriedade.'
        dic_BW = {
            'face':
            'iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAMMwAADDMBUlqVhwAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAIUSURBVEiJvZa9quJAGIbfMfEYTUSUQAqLYOnehJobsBTlHLbRQtKKlY3lObegxRa7pRdg7y0saiuoKAErMZif2Squ2eTEOCfsC1Pk+3uYb2YyQwCg1+u9UUqHAKoAOCQrB8ASwPt0Ov1JdF3/bprmj4QhoXp5eXnjTdMcUEr/Bw+WZQ15Smn1q4UIIZBlGaIoghBys2+3W1yv19u367rfeAAc6ww5jkOz2USj0YAoigH/aDTCbrfzpfCUUrAC2+02NE2LjPm3NjNQkiTU6/WHsFAgi1RVRSqVCthd171BwmozA/P5fMA2n88xm81g2zYAwHGccCAL9H43elosFrhcLpE5zMCwHMdxImtRSp8DptNpZDIZAIAgCAG/IAi+42Ga5q29nkin06FxgZqmodvtxooFgPF4jPV67bM9NcNnW384HJI7h49kWRZOp9PXgOfzGfv9HgCQy+VQKBR8fsMwYFkWAOB4PMJ13UAN0mq1Yq/hfVytVoOu6z7/YDDAZrP5Wzzk6CR6LOLEJLqGcWrxYX2OW5wJmOQOjQX0ApOERgIrlQoTUJblgK1cLodeWZ4IIeDDngZx5P1T75XNZiFJUmQeTyl1wPAW/awrD7rlpDiOW3qL/cz4DBY1CCG/U4qifDw7O1YpivJBAGAymbwahjG0bbtKKeXjJJdKJaiq6rOtVqvAjU8IsTmOWxaLxfd+v//rD1H2cZ8dKhk8AAAAAElFTkSuQmCC',
            'github':
            'iVBORw0KGgoAAAANSUhEUgAAAB0AAAAdCAYAAABWk2cPAAAABHNCSVQIC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KIjKTzWbfA+4/Ev39/V2dnZ3LwNP/UPwqaycnJy9yuVwFQF2cVIFA4PMdCQAMBQKBL8lk0gAwACzLmtJav7kjgTp95XK5ViwWf0g0Gg36/f7fQLBRltYaEWkU5hkRKTmO06dM03ztRaAuEQ6H0Vq3RUJrHTIM46XR29v7jvNt2BClFEtLS0QiEfb39ymVSrfujIg4Cog0mxiPx1lYWGBycpKenh5c122cdANa64gCHra6QCKRYHl5mfHxcYLBII7jtLJMWAEdrUrUSaVSrK6uMjo6SigU4uzsrJn0DtU4xhs+n4+xsTFWVlYYHh6mq6vL821qm0Qd0zSZmJggk8kQi8XuR6LO1tYW+XzeUzd87S6ey+WYnZ0ln88jIijV+DrbJnF4eMj09DTb29u4rtvU+8MHVLnFDjk+PiadTrO+vs7p6WkrS1R9QAGPb8zLaK2Zm5tjcXGRSqXiqe03sO8D9pqVyGQyzM/PUywWMQzjNgIAv3xa600Ree4l2nEcRkZGODg4QCmFYRi3KQ6AiGzIwMBAt2EYB9znp9y27bLWesZjUtsELkjbtl2ur6osy/qqtX7W7io3ISIb2Wx2CHDrT5TrOE4SWLsjgW+O4yS4mLiv9ldZljWptX6Lx2mrSY6A9M7OzgeuG/kvE41Gg6ZpvhKROPCE85mj5Z8fEfnpuu5313U/2bZdvhr0F9Fo9phaoDu9AAAAAElFTkSuQmCC'
        }
        footer = '''<div align="right">
                      <p align="right"><b>''' + self.tr(
            'Author: Leandro Franca', 'Autor: Leandro França'
        ) + '''</b></p>
                      <div align="right">
                      <a target="_blank" rel="noopener noreferrer" href="https://www.udemy.com/user/leandro-luiz-silva-de-franca/"><img title="Udemy" src="data:image/png;base64,''' + dic_BW[
            'udemy'] + '''"></a> <a target="_blank" rel="noopener noreferrer" href="https://www.facebook.com/GEOCAPT/"><img title="Facebook" src="data:image/png;base64,''' + dic_BW[
                'face'] + '''"></a> <a target="_blank" rel="noopener noreferrer" href="https://www.youtube.com/channel/UCLrewDGciytcBG9r0OxTW2w"><img title="Youtube" src="data:image/png;base64,''' + dic_BW[
                    'youtube'] + '''"></a> <a target="_blank" rel="noopener noreferrer" href="https://www.researchgate.net/profile/Leandro_Franca2"><img title="ResearchGate" src="data:image/png;base64,''' + dic_BW[
                        'RG'] + '''"></a> <a target="_blank" rel="noopener noreferrer" href="https://github.com/LEOXINGU"><img title="GitHub" src="data:image/png;base64,''' + dic_BW[
                            'github'] + '''"></a> <a target="_blank" rel="noopener noreferrer" href="https://www.linkedin.com/in/leandro-fran%C3%A7a-93093714b/"><img title="Linkedin" src="data:image/png;base64,''' + dic_BW[
                                'linkedin'] + '''"></a> <a target="_blank" rel="noopener noreferrer" href="http://lattes.cnpq.br/8559852745183879"><img title="Lattes" src="data:image/png;base64,''' + dic_BW[
                                    'lattes'] + '''"></a>
                      </div>
                    </div>'''
        if self.LOC == 'pt':
            return txt_pt + footer
        else:
            return self.tr(txt_en) + footer

    def initAlgorithm(self, config=None):
        # 'INPUTS'
        self.addParameter(
            QgsProcessingParameterFeatureSource(
                'INPUT1',
                self.tr('Boundary Survey Points', 'Pontos de Limite'),
                types=[QgsProcessing.TypeVectorPoint]))
        self.addParameter(
            QgsProcessingParameterFeatureSource(
                'INPUT2',
                self.tr('Neighborhood Dividing Line', 'Elemento Confrontante'),
                types=[QgsProcessing.TypeVectorLine]))
        self.addParameter(
            QgsProcessingParameterFeatureSource(
                'INPUT3',
                self.tr('Property Polygon', 'Área do Imóvel'),
                types=[QgsProcessing.TypeVectorPolygon]))
        # 'OUTPUTS'
        self.addParameter(
            QgsProcessingParameterFileDestination(
                'HTML', self.tr('Descriptive Memorial', 'Memorial Descritivo'),
                self.tr('HTML files (*.html)')))

    # Acentos para HTML
    def str2HTML(self, texto):
        if texto:
            dicHTML = {
                'Á': '&Aacute;',
                'á': '&aacute;',
                'Â': '&Acirc;',
                'â': '&acirc;',
                'À': '&Agrave;',
                'à': '&agrave;',
                'Å': '&Aring;',
                'å': '&aring;',
                'Ã': '&Atilde;',
                'ã': '&atilde;',
                'Ä': '&Auml;',
                'ä': '&auml;',
                'Æ': '&AElig;',
                'æ': '&aelig;',
                'É': '&Eacute;',
                'é': '&eacute;',
                'Ê': '&Ecirc;',
                'ê': '&ecirc;',
                'È': '&Egrave;',
                'è': '&egrave;',
                'Ë': '&Euml;',
                'ë': '&Euml;',
                'Ð': '&ETH;',
                'ð': '&eth;',
                'Í': '&Iacute;',
                'í': '&iacute;',
                'Î': '&Icirc;',
                'î': '&icirc;',
                'Ì': '&Igrave;',
                'ì': '&igrave;',
                'Ï': '&Iuml;',
                'ï': '&iuml;',
                'Ó': '&Oacute;',
                'ó': '&oacute;',
                'Ô': '&Ocirc;',
                'ô': '&ocirc;',
                'Ò': '&Ograve;',
                'ò': '&ograve;',
                'Ø': '&Oslash;',
                'ø': '&oslash;',
                'Ù': '&Ugrave;',
                'ù': '&ugrave;',
                'Ü': '&Uuml;',
                'ü': '&uuml;',
                'Ç': '&Ccedil;',
                'ç': '&ccedil;',
                'Ñ': '&Ntilde;',
                'ñ': '&ntilde;',
                'Ý': '&Yacute;',
                'ý': '&yacute;',
                '"': '&quot;',
                '”': '&quot;',
                '<': '&lt;',
                '>': '&gt;',
                '®': '&reg;',
                '©': '&copy;',
                '\'': '&apos;',
                'ª': '&ordf;',
                'º': '&ordm',
                '°': '&deg;'
            }
            for item in dicHTML:
                if item in texto:
                    texto = texto.replace(item, dicHTML[item])
            return texto
        else:
            return ''

    # Fuso e Hemisfério
    def FusoHemisf(self, pnt):
        lon = pnt.x()
        lat = pnt.y()
        # Calculo do Fuso
        fuso = round((183 + lon) / 6.0)
        # Hemisferio
        hemisf = 'N' if lat >= 0 else 'S'
        return (hemisf, fuso)

    # Cálculo de Azimutes
    def azimute(self, A, B):
        # Cálculo dos Azimutes entre dois pontos (Vetor AB origem A extremidade B)
        if ((B.x() - A.x()) >= 0 and (B.y() - A.y()) > 0):  #1º quadrante
            AzAB = atan((B.x() - A.x()) / (B.y() - A.y()))
            AzBA = AzAB + pi
        elif ((B.x() - A.x()) > 0 and (B.y() - A.y()) < 0):  #2º quadrante
            AzAB = pi + atan((B.x() - A.x()) / (B.y() - A.y()))
            AzBA = AzAB + pi
        elif ((B.x() - A.x()) <= 0 and (B.y() - A.y()) < 0):  #3º quadrante
            AzAB = atan((B.x() - A.x()) / (B.y() - A.y())) + pi
            AzBA = AzAB - pi
        elif ((B.x() - A.x()) < 0 and (B.y() - A.y()) > 0):  #4º quadrante
            AzAB = 2 * pi + atan((B.x() - A.x()) / (B.y() - A.y()))
            AzBA = AzAB + pi
        elif ((B.x() - A.x()) > 0
              and (B.y() - A.y()) == 0):  # no eixo positivo de x (90º)
            AzAB = pi / 2
            AzBA = 1.5 * pi
        else:  # ((B.x()-A.x())<0 and(B.y()-A.y())==0) # no eixo negativo de x (270º)
            AzAB = 1.5 * pi
            AzBA = pi / 2
        # Correção dos ângulos para o intervalo de 0 a 2pi
        if AzAB < 0 or AzAB > 2 * pi:
            if (AzAB < 0):
                AzAB = AzAB + 2 * pi
            else:
                AzAB = AzAB - 2 * pi
        if AzBA < 0 or AzBA > 2 * pi:
            if (AzBA < 0):
                AzBA = AzBA + 2 * pi
            else:
                AzBA = AzBA - 2 * pi
        return (AzAB, AzBA)

    # Graus Decimais para DMS
    def dd2dms(self, dd, n_digits):
        if dd != 0:
            graus = int(floor(abs(dd)))
            resto = round(abs(dd) - graus, 10)
            if dd < 0:
                texto = '-' + str(graus) + '°'
            else:
                texto = str(graus) + '°'
            minutos = int(floor(60 * resto))
            resto = round(resto * 60 - minutos, 10)
            texto = texto + '{:02d}'.format(minutos) + "'"
            segundos = resto * 60
            if n_digits < 1:
                texto = texto + '{:02d}'.format(int(segundos)) + '"'
            else:
                texto = texto + ('{:0' + str(3 + n_digits) + '.' +
                                 str(n_digits) + 'f}').format(segundos) + '"'
            return texto
        else:
            return "0°00'" + ('{:0' + str(3 + n_digits) + '.' + str(n_digits) +
                              'f}').format(0)

    def processAlgorithm(self, parameters, context, feedback):

        vertices = self.parameterAsSource(parameters, 'INPUT1', context)
        limites = self.parameterAsSource(parameters, 'INPUT2', context)
        area = self.parameterAsSource(parameters, 'INPUT3', context)

        meses = {
            1: 'janeiro',
            2: 'fevereiro',
            3: 'março',
            4: 'abril',
            5: 'maio',
            6: 'junho',
            7: 'julho',
            8: 'agosto',
            9: 'setembro',
            10: 'outubro',
            11: 'novembro',
            12: 'dezembro'
        }

        # VALIDAÇÃO DOS DADOS DE ENTRADA!!!
        # atributos codigo deve ser preenchido
        # ordem do numeros

        # Pegando informações dos confrontantes (limites)
        ListaDescr = []
        ListaCont = []
        soma = 0
        for linha in limites.getFeatures():
            Lin_coord = linha.geometry().asMultiPolyline()[0]
            ListaDescr += [[
                self.str2HTML(linha['descr_pnt_inicial']),
                self.str2HTML(linha['confrontante'])
            ]]
            cont = len(Lin_coord)
            ListaCont += [(soma, cont - 1)]
            soma += cont - 1

        # Pegando o SRC do Projeto
        SRC = QgsProject.instance().crs().description()
        # Verificando o SRC
        if QgsProject.instance().crs().isGeographic():
            raise QgsProcessingException(
                self.tr('The Project CRS must be projected!',
                        'O SRC do Projeto deve ser Projetado!'))
        feedback.pushInfo(
            self.tr('Project CRS is {}.', 'SRC do Projeto é {}.').format(SRC))

        # Dados do levantamento
        #Fields = area.fields()
        #fieldnames = [field.name() for field in Fields]
        for feat in area.getFeatures():
            feat1 = feat
            break

        geom = feat1.geometry()
        centroideG = geom.centroid().asPoint()

        # Transformar Coordenadas de Geográficas para o sistema UTM
        coordinateTransformer = QgsCoordinateTransform()
        coordinateTransformer.setDestinationCrs(QgsProject.instance().crs())
        coordinateTransformer.setSourceCrs(
            QgsCoordinateReferenceSystem('EPSG:4674'))

        pnts = {}

        for feat in vertices.getFeatures():
            geom = feat.geometry()
            if geom.isMultipart():
                pnts[feat['ordem']] = [
                    coordinateTransformer.transform(geom.asMultiPoint()[0]),
                    feat['tipo'], feat['codigo']
                ]
            else:
                pnts[feat['ordem']] = [
                    coordinateTransformer.transform(geom.asPoint()),
                    feat['tipo'], feat['codigo']
                ]

        # Cálculo dos Azimutes e Distâncias
        tam = len(pnts)
        Az_lista, Dist = [], []
        for k in range(tam):
            pntA = pnts[k + 1][0]
            pntB = pnts[max((k + 2) % (tam + 1), 1)][0]
            Az_lista += [(180 / pi) * self.azimute(pntA, pntB)[0]]
            Dist += [sqrt((pntA.x() - pntB.x())**2 + (pntA.y() - pntB.y())**2)]

        # Inserindo dados iniciais do levantamento
        itens = {
            '[IMOVEL]':
            self.str2HTML(feat1['imóvel']),
            '[PROPRIETARIO]':
            self.str2HTML(feat1['proprietário']),
            '[UF]':
            feat1['UF'],
            '[MATRICULAS]':
            self.str2HTML(feat1['matrícula']),
            '[AREA]':
            '{:,.2f}'.format(feat1['area']).replace(',', 'X').replace(
                '.', ',').replace('X', '.'),
            '[SRC]':
            SRC,
            '[COMARCA]':
            self.str2HTML(feat1['município'] + ' - ' + feat1['UF']),
            '[MUNICIPIO]':
            self.str2HTML(feat1['município']),
            '[PERIMETRO]':
            '{:,.2f}'.format(feat1['perimetro']).replace(',', 'X').replace(
                '.', ',').replace('X', '.')
        }

        for item in itens:
            self.texto_inicial = self.texto_inicial.replace(item, itens[item])

        LINHAS = self.texto_inicial
        #feedback.pushInfo(str(ListaCont))
        for w, t in enumerate(ListaCont):
            linha0 = self.texto_var1
            itens = {
                '[Vn]':
                pnts[t[0] + 1][2],
                '[En]':
                '{:,.2f}'.format(pnts[t[0] + 1][0].x()).replace(
                    ',', 'X').replace('.', ',').replace('X', '.'),
                '[Nn]':
                '{:,.2f}'.format(pnts[t[0] + 1][0].y()).replace(
                    ',', 'X').replace('.', ',').replace('X', '.'),
                '[Az_n]':
                self.str2HTML(
                    self.dd2dms(Az_lista[t[0]], 2).replace('.', ',')),
                '[Dist_n]':
                '{:,.2f}'.format(Dist[t[0]]).replace(',', 'X').replace(
                    '.', ',').replace('X', '.'),
                '[Descr_k]':
                ListaDescr[w][0],
                '[Confront_k]':
                ListaDescr[w][1]
            }
            for item in itens:
                linha0 = linha0.replace(item, itens[item])
            LINHAS += linha0
            LIN0 = ''
            for k in range(t[0] + 1, t[0] + t[1]):
                linha1 = self.texto_var2
                itens = {
                    '[Vn]':
                    pnts[k + 1][2],
                    '[En]':
                    '{:,.2f}'.format(pnts[k + 1][0].x()).replace(
                        ',', 'X').replace('.', ',').replace('X', '.'),
                    '[Nn]':
                    '{:,.2f}'.format(pnts[k + 1][0].y()).replace(
                        ',', 'X').replace('.', ',').replace('X', '.'),
                    '[Az_n]':
                    self.str2HTML(
                        self.dd2dms(Az_lista[k], 2).replace('.', ',')),
                    '[Dist_n]':
                    '{:,.2f}'.format(Dist[k]).replace(',', 'X').replace(
                        '.', ',').replace('X', '.')
                }
                for item in itens:
                    linha1 = linha1.replace(item, itens[item])
                LIN0 += linha1
            LINHAS += LIN0

        # Inserindo dados finais
        itens = {
            '[P-01]':
            pnts[1][2],
            '[N1]':
            '{:,.2f}'.format(pnts[1][0].y()).replace(',', 'X').replace(
                '.', ',').replace('X', '.'),
            '[E1]':
            '{:,.2f}'.format(pnts[1][0].x()).replace(',', 'X').replace(
                '.', ',').replace('X', '.'),
            '[FUSO]':
            str(self.FusoHemisf(centroideG)[1]),
            '[HEMISFERIO]':
            self.FusoHemisf(centroideG)[0],
            '[RESP_TEC]':
            self.str2HTML(feat1['Resp_Tecnico']),
            '[CREA]':
            self.str2HTML(feat1['CREA']),
            '[LOCAL]':
            self.str2HTML((feat1['município']).title() + ' - ' +
                          (feat1['UF']).upper()),
            '[DATA]':
            ((feat1['data_levantamento'].toPyDate()).strftime("%d de {} de %Y")
             ).format(meses[feat1['data_levantamento'].month()])
        }

        for item in itens:
            self.texto_final = self.texto_final.replace(item, itens[item])

        LINHAS += self.texto_final

        output = self.parameterAsFileOutput(parameters, self.HTML, context)
        arq = open(output, 'w')
        arq.write(LINHAS)
        arq.close()

        # Check for cancelation
        if feedback.isCanceled():
            return {}

        feedback.pushInfo(self.tr('Operation completed successfully!'))
        feedback.pushInfo('Leandro França - Eng Cart')

        return {self.HTML: output}
Exemplo n.º 14
0
class ImportPhotos(QgsProcessingAlgorithm):

    LOC = QgsApplication.locale()

    def translate(self, string):
        return QCoreApplication.translate('Processing', string)

    def tr(self, *string):
        # Traduzir para o portugês: arg[0] - english (translate), arg[1] - português
        if self.LOC == 'pt':
            if len(string) == 2:
                return string[1]
            else:
                return self.translate(string[0])
        else:
            return self.translate(string[0])

    def createInstance(self):
        return ImportPhotos()

    def name(self):
        return 'importphotos'

    def displayName(self):
        return self.tr('Photos with Geotag', 'Fotos com Geotag')

    def group(self):
        return self.tr('LF Reambulation', 'LF Reambulação')

    def groupId(self):
        return 'lf_reambulation'

    def tags(self):
        return self.tr('import', 'photo', 'reambulation', 'geotag', 'geophoto',
                       'reambulação', 'fotografia', 'photography').split(',')

    def shortHelpString(self):
        txt_en = 'Imports photos with geotag to a Point Layer.'
        txt_pt = 'Importa fotos com geotag para uma camada de pontos.'
        dic_BW = {
            'face':
            'iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAMMwAADDMBUlqVhwAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAIUSURBVEiJvZa9quJAGIbfMfEYTUSUQAqLYOnehJobsBTlHLbRQtKKlY3lObegxRa7pRdg7y0saiuoKAErMZif2Squ2eTEOCfsC1Pk+3uYb2YyQwCg1+u9UUqHAKoAOCQrB8ASwPt0Ov1JdF3/bprmj4QhoXp5eXnjTdMcUEr/Bw+WZQ15Smn1q4UIIZBlGaIoghBys2+3W1yv19u367rfeAAc6ww5jkOz2USj0YAoigH/aDTCbrfzpfCUUrAC2+02NE2LjPm3NjNQkiTU6/WHsFAgi1RVRSqVCthd171BwmozA/P5fMA2n88xm81g2zYAwHGccCAL9H43elosFrhcLpE5zMCwHMdxImtRSp8DptNpZDIZAIAgCAG/IAi+42Ga5q29nkin06FxgZqmodvtxooFgPF4jPV67bM9NcNnW384HJI7h49kWRZOp9PXgOfzGfv9HgCQ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G8ZV+7FqlkJfwLRsv8q+hqKAPnN9N+PvgzrZ+F/FEK/8+935Mjf8BkUD/wAeruvgN4+8VeL9curfxR4P1LwzcWUBKSylHgudzLwrKxG4Yzj0NepUUAFFFFABRRRQAUUUUAf/2Q=='
        footer = '''<div>
                      <div align="center">
                      <img src="data:image/jpg;base64,''' + image + '''
                      </div>
                      <div align="right">
                      <p align="right">
                      <b>''' + self.tr(
            'Author: Leandro Franca', 'Autor: Leandro França'
        ) + '''</b>
                      </p>
                      <a target="_blank" rel="noopener noreferrer" href="https://www.udemy.com/user/leandro-luiz-silva-de-franca/"><img title="Udemy" src="data:image/png;base64,''' + dic_BW[
            'udemy'] + '''"></a> <a target="_blank" rel="noopener noreferrer" href="https://www.facebook.com/GEOCAPT/"><img title="Facebook" src="data:image/png;base64,''' + dic_BW[
                'face'] + '''"></a> <a target="_blank" rel="noopener noreferrer" href="https://www.youtube.com/channel/UCLrewDGciytcBG9r0OxTW2w"><img title="Youtube" src="data:image/png;base64,''' + dic_BW[
                    'youtube'] + '''"></a> <a target="_blank" rel="noopener noreferrer" href="https://www.researchgate.net/profile/Leandro_Franca2"><img title="ResearchGate" src="data:image/png;base64,''' + dic_BW[
                        'RG'] + '''"></a> <a target="_blank" rel="noopener noreferrer" href="https://github.com/LEOXINGU"><img title="GitHub" src="data:image/png;base64,''' + dic_BW[
                            'github'] + '''"></a> <a target="_blank" rel="noopener noreferrer" href="https://www.linkedin.com/in/leandro-fran%C3%A7a-93093714b/"><img title="Linkedin" src="data:image/png;base64,''' + dic_BW[
                                'linkedin'] + '''"></a> <a target="_blank" rel="noopener noreferrer" href="http://lattes.cnpq.br/8559852745183879"><img title="Lattes" src="data:image/png;base64,''' + dic_BW[
                                    'lattes'] + '''"></a>
                      </div>
                    </div>'''
        return self.tr(txt_en, txt_pt) + footer

    FOLDER = 'FOLDER'
    NONGEO = 'NONGEO'
    OUTPUT = 'OUTPUT'

    def initAlgorithm(self, config=None):

        self.addParameter(
            QgsProcessingParameterFile(
                self.FOLDER,
                self.tr('Folder with JPEG photos', 'Pasta com fotos JPEG'),
                behavior=QgsProcessingParameterFile.Folder,
                defaultValue=None))

        self.addParameter(
            QgsProcessingParameterFile(
                self.NONGEO,
                self.tr('Folder to copy the photos without geotag',
                        'Pasta para copiar as fotos sem geotag'),
                behavior=QgsProcessingParameterFile.Folder,
                defaultValue=None,
                optional=True))

        self.addParameter(
            QgsProcessingParameterFeatureSink(
                self.OUTPUT,
                self.tr('Geolocated photos', 'Fotos Geolocalizadas')))

    def processAlgorithm(self, parameters, context, feedback):

        pasta = self.parameterAsFile(parameters, self.FOLDER, context)
        if not pasta:
            raise QgsProcessingException(
                self.invalidSourceError(parameters, self.FOLDER))

        fotos_nao_geo = self.parameterAsFile(parameters, self.NONGEO, context)

        lista = os.listdir(pasta)
        tam = len(lista)
        copy_ngeo = False
        if os.path.isdir(fotos_nao_geo):
            copy_ngeo = True

        # Funcao para transformar os dados do EXIF em coordenadas em graus decimais
        def coordenadas(exif):
            try:
                ref_lat = exif['GPSInfo'][1][0]
                ref_lon = exif['GPSInfo'][3][0]
                sinal_lat, sinal_lon = 0, 0
                if ref_lat == 'S':
                    sinal_lat = -1
                elif ref_lat == 'N':
                    sinal_lat = 1
                if ref_lon == 'W':
                    sinal_lon = -1
                elif ref_lon == 'E':
                    sinal_lon = 1
                grausLat, grausLon = exif['GPSInfo'][2][0][0], exif['GPSInfo'][
                    4][0][0]
                minLat, minLon = exif['GPSInfo'][2][1][0], exif['GPSInfo'][4][
                    1][0]
                segLat = exif['GPSInfo'][2][2][0] / float(
                    exif['GPSInfo'][2][2][1])
                segLon = exif['GPSInfo'][4][2][0] / float(
                    exif['GPSInfo'][4][2][1])
                if sinal_lat != 0 and sinal_lon != 0:
                    lat = sinal_lat * (float(grausLat) + minLat / 60.0 +
                                       segLat / 3600.0)
                    lon = sinal_lon * (float(grausLon) + minLon / 60.0 +
                                       segLon / 3600.0)
                return lat, lon
            except:
                return 0, 0

        # Funcao para pegar Azimute
        def azimute(exif):
            Az = exif['GPSInfo'][17]
            if isinstance(Az, tuple):
                Az = Az[0] / float(Az[1])
                return Az
            else:
                return Az

        # Funcao para gerar o padrao data-hora
        def data_hora(texto):
            data_hora = texto.replace(' ', ':')
            data_hora = data_hora.split(':')
            ano = int(data_hora[0])
            mes = int(data_hora[1])
            dia = int(data_hora[2])
            hora = int(data_hora[3])
            minuto = int(data_hora[4])
            segundo = int(data_hora[5])
            data_hora = unicode(
                datetime.datetime(ano, mes, dia, hora, minuto, segundo))
            return data_hora

        # Criando Output
        crs = QgsCoordinateReferenceSystem()
        crs.createFromSrid(4326)
        fields = QgsFields()
        fields.append(QgsField(self.tr('name', 'nome'), QVariant.String))
        fields.append(QgsField(self.tr('azimuth', 'azimute'), QVariant.Int))
        fields.append(
            QgsField(self.tr('date_time', 'data_hora'), QVariant.String))
        fields.append(QgsField(self.tr('path', 'caminho'), QVariant.String))

        (sink, dest_id) = self.parameterAsSink(parameters, self.OUTPUT,
                                               context, fields,
                                               QgsWkbTypes.Point, crs)
        if sink is None:
            raise QgsProcessingException(
                self.invalidSinkError(parameters, self.OUTPUT))

        Percent = 100.0 / tam if tam != 0 else 0
        for index, arquivo in enumerate(lista):
            if (arquivo).lower().endswith(('.jpg', '.jpeg')):
                img = PIL.Image.open(os.path.join(pasta, arquivo))
                if img._getexif():
                    exif = {
                        PIL.ExifTags.TAGS[k]: v
                        for k, v in img._getexif().items()
                        if k in PIL.ExifTags.TAGS
                    }
                else:
                    exif = {}
                lon, lat = 0, 0
                Az = None
                date_time = None
                if 'GPSInfo' in exif:
                    lat, lon = coordenadas(exif)
                    if 17 in exif['GPSInfo']:
                        Az = azimute(exif)
                if 'DateTimeOriginal' in exif:
                    date_time = data_hora(exif['DateTimeOriginal'])
                elif 'DateTime' in exif:
                    date_time = data_hora(exif['DateTime'])
                if lon != 0:
                    feature = QgsFeature(fields)
                    feature.setGeometry(
                        QgsGeometry.fromPointXY(QgsPointXY(lon, lat)))
                    feature.setAttributes(
                        [arquivo, Az, date_time,
                         os.path.join(pasta, arquivo)])
                    sink.addFeature(feature, QgsFeatureSink.FastInsert)
                else:
                    print()
                    feedback.pushInfo(
                        self.tr(
                            'The file "{}" has no geotag!'.format(arquivo),
                            'A imagem "{}" não possui geotag!'.format(
                                arquivo)))
                    if copy_ngeo:
                        shutil.copy2(os.path.join(pasta, arquivo),
                                     os.path.join(fotos_nao_geo, arquivo))
            if feedback.isCanceled():
                break
            feedback.setProgress(int((index + 1) * Percent))

        feedback.pushInfo(
            self.tr('Operation completed successfully!',
                    'Operação finalizada com sucesso!'))
        feedback.pushInfo(
            self.tr('Leandro Franca - Cartographic Engineer',
                    'Leandro França - Eng Cart'))

        return {self.OUTPUT: dest_id}
Exemplo n.º 15
0
 def initGui(self):
     if QgsApplication.locale() in ['fr','FR']:
         self.switchLang('fr')
     self.initProcessing()
Exemplo n.º 16
0
class InventoryRaster(QgsProcessingAlgorithm):

    LOC = QgsApplication.locale()

    def translate(self, string):
        return QCoreApplication.translate('Processing', string)

    def tr(self, *string):
        # Traduzir para o portugês: arg[0] - english (translate), arg[1] - português
        if self.LOC == 'pt':
            if len(string) == 2:
                return string[1]
            else:
                return self.translate(string[0])
        else:
            return self.translate(string[0])

    def createInstance(self):
        return InventoryRaster()

    def name(self):
        return 'inventoryraster'

    def displayName(self):
        return self.tr('Raster data inventory', 'Inventário de dados raster')

    def group(self):
        return self.tr('LF Raster')

    def groupId(self):
        return 'lf_raster'

    def shortHelpString(self):
        txt_en = 'Creates a vector layer with the inventory of raster files in a folder. The geometry type of the features of this layer can be Polygon (bounding box) or Point (centroid).'
        txt_pt = 'Cria uma camada vetorial com o inventário de arquivos raster de uma pasta. O tipo de geometria das feições dessa camada pode ser Polígono (retângulo envolvente) ou Ponto (centroide).'
        dic_BW = {
            'face':
            'iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAMMwAADDMBUlqVhwAAABl0RV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Hl5mfHxcYLBII7jtLJMWAEdrUrUSaVSrK6uMjo6SigU4uzsrJn0DtU4xhs+n4+xsTFWVlYYHh6mq6vL821qm0Qd0zSZmJggk8kQi8XuR6LO1tYW+XzeUzd87S6ey+WYnZ0ln88jIijV+DrbJnF4eMj09DTb29u4rtvU+8MHVLnFDjk+PiadTrO+vs7p6WkrS1R9QAGPb8zLaK2Zm5tjcXGRSqXiqe03sO8D9pqVyGQyzM/PUywWMQzjNgIAv3xa600Ree4l2nEcRkZGODg4QCmFYRi3KQ6AiGzIwMBAt2EYB9znp9y27bLWesZjUtsELkjbtl2ur6osy/qqtX7W7io3ISIb2Wx2CHDrT5TrOE4SWLsjgW+O4yS4mLiv9ldZljWptX6Lx2mrSY6A9M7OzgeuG/kvE41Gg6ZpvhKROPCE85mj5Z8fEfnpuu5313U/2bZdvhr0F9Fo9phaoDu9AAAAAElFTkSuQmCC'
        }
        footer = '''<div align="right">
                      <p align="right"><b>''' + self.tr(
            'Author: Leandro Franca', 'Autor: Leandro França'
        ) + '''</b></p>
                      <div align="right">
                      <a target="_blank" rel="noopener noreferrer" href="https://www.udemy.com/user/leandro-luiz-silva-de-franca/"><img title="Udemy" src="data:image/png;base64,''' + dic_BW[
            'udemy'] + '''"></a> <a target="_blank" rel="noopener noreferrer" href="https://www.facebook.com/GEOCAPT/"><img title="Facebook" src="data:image/png;base64,''' + dic_BW[
                'face'] + '''"></a> <a target="_blank" rel="noopener noreferrer" href="https://www.youtube.com/channel/UCLrewDGciytcBG9r0OxTW2w"><img title="Youtube" src="data:image/png;base64,''' + dic_BW[
                    'youtube'] + '''"></a> <a target="_blank" rel="noopener noreferrer" href="https://www.researchgate.net/profile/Leandro_Franca2"><img title="ResearchGate" src="data:image/png;base64,''' + dic_BW[
                        'RG'] + '''"></a> <a target="_blank" rel="noopener noreferrer" href="https://github.com/LEOXINGU"><img title="GitHub" src="data:image/png;base64,''' + dic_BW[
                            'github'] + '''"></a> <a target="_blank" rel="noopener noreferrer" href="https://www.linkedin.com/in/leandro-fran%C3%A7a-93093714b/"><img title="Linkedin" src="data:image/png;base64,''' + dic_BW[
                                'linkedin'] + '''"></a> <a target="_blank" rel="noopener noreferrer" href="http://lattes.cnpq.br/8559852745183879"><img title="Lattes" src="data:image/png;base64,''' + dic_BW[
                                    'lattes'] + '''"></a>
                      </div>
                    </div>'''
        return self.tr(txt_en, txt_pt) + footer

    FOLDER = 'FOLDER'
    SUBFOLDER = 'SUBFOLDER'
    FORMAT = 'FORMAT'
    GEOMETRY = 'GEOMETRY'
    OUTPUT = 'OUTPUT'
    CRS = 'CRS'

    def initAlgorithm(self, config=None):
        # INPUT
        self.addParameter(
            QgsProcessingParameterFile(
                self.FOLDER,
                self.tr('Folder with raster files',
                        'Pasta com arquivos raster'),
                behavior=QgsProcessingParameterFile.Folder,
                defaultValue=None))

        self.addParameter(
            QgsProcessingParameterBoolean(self.SUBFOLDER,
                                          self.tr('Check subfolders',
                                                  'Verificar sub-pastas'),
                                          defaultValue=False))

        self.addParameter(
            QgsProcessingParameterString(self.FORMAT,
                                         self.tr('Format', 'Formato'),
                                         defaultValue='.tif'))

        self.addParameter(
            QgsProcessingParameterEnum(self.GEOMETRY,
                                       self.tr('Geometry', 'Geometria'),
                                       options=[
                                           self.tr('Polygon', 'Polígono'),
                                           self.tr('Point', 'Ponto')
                                       ],
                                       defaultValue=0))

        self.addParameter(
            QgsProcessingParameterCrs(self.CRS, self.tr('CRS', 'SRC'),
                                      'ProjectCrs'))

        # OUTPUT
        self.addParameter(
            QgsProcessingParameterFeatureSink(
                self.OUTPUT, self.tr('Inventory Layer',
                                     'Camada de Inventário')))

    def processAlgorithm(self, parameters, context, feedback):

        pasta = self.parameterAsFile(parameters, self.FOLDER, context)
        if not pasta:
            raise QgsProcessingException(
                self.invalidSourceError(parameters, self.FOLDER))

        subpasta = self.parameterAsBool(parameters, self.SUBFOLDER, context)

        formato = self.parameterAsString(parameters, self.FORMAT, context)

        geometria = self.parameterAsEnum(parameters, self.GEOMETRY, context)

        crs = self.parameterAsCrs(parameters, self.CRS, context)

        # OUTPUT
        GeomType = QgsWkbTypes.Point if geometria == 1 else QgsWkbTypes.Polygon
        Fields = QgsFields()
        itens = {
            self.tr('name', 'nome'): QVariant.String,
            self.tr('extension', 'extensão'): QVariant.String,
            self.tr('path', 'caminho'): QVariant.String,
            self.tr('resX'): QVariant.Double,
            self.tr('resY'): QVariant.Double,
            self.tr('n_cols'): QVariant.Int,
            self.tr('n_rows', 'n_lin'): QVariant.Int,
            self.tr('crs', 'src'): QVariant.String,
            self.tr('n_bands', 'n_bandas'): QVariant.Int,
            self.tr('dataType', 'tipoDado'): QVariant.String,
        }
        for item in itens:
            Fields.append(QgsField(item, itens[item]))

        (sink, dest_id) = self.parameterAsSink(parameters, self.OUTPUT,
                                               context, Fields, GeomType, crs)
        if sink is None:
            raise QgsProcessingException(
                self.invalidSinkError(parameters, self.OUTPUT))

        # Listar Arquivos
        feedback.pushInfo(
            self.tr('Checking files in the folder...',
                    'Checando arquivos na pasta...'))
        lista = []
        if subpasta:
            for root, dirs, files in os.walk(pasta, topdown=True):
                for name in files:
                    if name[-1 * len(formato):] == formato:
                        lista += [os.path.join(root, name)]
        else:
            for item in os.listdir(pasta):
                if item[-1 * len(formato):] == formato:
                    lista += [os.path.join(pasta, item)]

        total = 100.0 / len(lista) if len(lista) > 0 else 0

        # Obter dados dos arquivos listados
        feedback.pushInfo(
            self.tr('Creating raster files...',
                    'Criando inventário de arquivos raster...'))
        for current, file_path in enumerate(lista):
            image = gdal.Open(file_path)  # https://gdal.org/python/
            prj = image.GetProjection()  # wkt
            ulx, xres, xskew, uly, yskew, yres = image.GetGeoTransform()
            GDT = image.GetRasterBand(1).DataType
            n_bands = image.RasterCount
            cols = image.RasterXSize  # Number of columns
            rows = image.RasterYSize  # Number of rows
            CRS = QgsCoordinateReferenceSystem(prj)  # Create CRS
            image = None  # Close image

            # Creating BBox
            coord = [[
                QgsPointXY(ulx, uly),
                QgsPointXY(ulx + cols * xres, uly),
                QgsPointXY(ulx + cols * xres, uly + rows * yres),
                QgsPointXY(ulx, uly + rows * yres),
                QgsPointXY(ulx, uly)
            ]]
            geom = QgsGeometry.fromPolygonXY(coord)

            # CRS transformation
            coordinateTransformer = QgsCoordinateTransform()
            coordinateTransformer.setDestinationCrs(crs)
            coordinateTransformer.setSourceCrs(CRS)
            geom_transf = self.reprojectPoints(geom, coordinateTransformer)

            # Attributes
            path, file = os.path.split(file_path)
            name = os.path.splitext(file)[0]
            extension = os.path.splitext(file)[1]
            att = [
                name, extension, path,
                abs(xres),
                abs(yres), cols, rows,
                CRS.description(), n_bands,
                gdal.GetDataTypeName(GDT)
            ]

            # Saving feature
            feat = QgsFeature()
            feat.setGeometry(geom_transf.centroid()
                             ) if geometria == 1 else feat.setGeometry(
                                 geom_transf)  # centroid or polygon
            feat.setAttributes(att)
            sink.addFeature(feat, QgsFeatureSink.FastInsert)

            if feedback.isCanceled():
                break
            feedback.setProgress(int((current + 1) * total))

        feedback.pushInfo(
            self.tr('Operation completed successfully!',
                    'Operação finalizada com sucesso!'))
        feedback.pushInfo('Leandro França - Eng Cart')
        return {self.OUTPUT: dest_id}

    def reprojectPoints(self, geom, xform):
        if geom.type() == 0:  #Point
            if geom.isMultipart():
                pnts = geom.asMultiPoint()
                newPnts = []
                for pnt in pnts:
                    newPnts += [xform.transform(pnt)]
                newGeom = QgsGeometry.fromMultiPointXY(newPnts)
                return newGeom
            else:
                pnt = geom.asPoint()
                newPnt = xform.transform(pnt)
                newGeom = QgsGeometry.fromPointXY(newPnt)
                return newGeom
        elif geom.type() == 1:  #Line
            if geom.isMultipart():
                linhas = geom.asMultiPolyline()
                newLines = []
                for linha in linhas:
                    newLine = []
                    for pnt in linha:
                        newLine += [xform.transform(pnt)]
                    newLines += [newLine]
                newGeom = QgsGeometry.fromMultiPolylineXY(newLines)
                return newGeom
            else:
                linha = geom.asPolyline()
                newLine = []
                for pnt in linha:
                    newLine += [xform.transform(pnt)]
                newGeom = QgsGeometry.fromPolylineXY(newLine)
                return newGeom
        elif geom.type() == 2:  #Polygon
            if geom.isMultipart():
                poligonos = geom.asMultiPolygon()
                newPolygons = []
                for pol in poligonos:
                    newPol = []
                    for anel in pol:
                        newAnel = []
                        for pnt in anel:
                            newAnel += [xform.transform(pnt)]
                        newPol += [newAnel]
                    newPolygons += [newPol]
                newGeom = QgsGeometry.fromMultiPolygonXY(newPolygons)
                return newGeom
            else:
                pol = geom.asPolygon()
                newPol = []
                for anel in pol:
                    newAnel = []
                    for pnt in anel:
                        newAnel += [xform.transform(pnt)]
                    newPol += [newAnel]
                newGeom = QgsGeometry.fromPolygonXY(newPol)
                return newGeom
        else:
            return None
Exemplo n.º 17
0
class ExtendLines(QgsProcessingAlgorithm):

    LOC = QgsApplication.locale()

    def translate(self, string):
        return QCoreApplication.translate('Processing', string)

    def tr(self, *string):
        # Traduzir para o portugês: arg[0] - english (translate), arg[1] - português
        if self.LOC == 'pt':
            if len(string) == 2:
                return string[1]
            else:
                return self.translate(string[0])
        else:
            return self.translate(string[0])

    def createInstance(self):
        return ExtendLines()

    def name(self):
        return 'extendlines'

    def displayName(self):
        return self.tr('Extend lines', 'Estender linhas')

    def group(self):
        return self.tr('LF Vector', 'LF Vetor')

    def groupId(self):
        return 'lf_vector'

    def shortHelpString(self):
        txt_en = 'Extends lines at their <b>start</b> and/or <b>end</b> points.'
        txt_pt = 'Estende linhas nos seus pontos inicial e/ou final.'
        dic_BW = {
            'face':
            'iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAMMwAADDMBUlqVhwAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAIUSURBVEiJvZa9quJAGIbfMfEYTUSUQAqLYOnehJobsBTlHLbRQtKKlY3lObegxRa7pRdg7y0saiuoKAErMZif2Squ2eTEOCfsC1Pk+3uYb2YyQwCg1+u9UUqHAKoAOCQrB8ASwPt0Ov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09MIBoOgKErhOO7G8uXLv6msrPzztm3bgjdu3HgX7v925W2Tly5dWnv+/Pm29PT0m7m5uV1lZWVXP/roo8h7Ib4W/wW5PFM4xqdwfQAAAABJRU5ErkJggg==',
            'linkedin':
            'iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAM6QAADOkBmiiHWwAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAJRSURBVEiJ7ZU/aCJREMa/t7soa5LOoGihktZOQSxSWykBIYVaWZ6NVa6wSZ/WI5BGziJypA1CQBLsgkKKgBjFQkEtkouJ+AdxdeeKnHvurXdcXK84uK/amfl4v9m3s++xbrdrury8PGm324dEZMYGxRj7arPZvoRCoSPh/Pz8pFqtftgkYEnmTqeT6PV6xDscjs9EZPpLIADAy8uLS5jP52bGGACA4ziEw2H4/X5IkoSrqytcX1/rBhHRrrCcCAaDCAQCShyJRPD6+oq7uzvdMG458Hg8GoPX69UN0YDG47HGsCqnG5TP50FESjyZTFAoFDYCYvF4nBbDAAB7e3vw+XyQJAnFYhGPj4+6IUQE4eekJEm4vb0F8DaFC1mtVphMb3+BLMtotVogItjtdjgcDhiNRvT7fTw8PKzcbhXI5XIhlUqpOkkkEpjP5zg+PoYg/LCfnp5if38fbrdbteB0OsXFxQVubm5+DTIYDKoiYww8z4OIwPO8qhaLxbCzs6Pp3GAwIBqN4vn5Gff390qe0zj/UKsgywqFQqpY843eo1KphHK5DLPZjIODAxiNRqXmdDqxvb2N4XCoD1Sv13F2dqbEs9kM0WhU5bFYLApo7a1bTOZClUpF49na2lKe1wb1ej1VvGqklwdobdB79R/0j4FkWdYYiEh1dawrAcATgF0AaDabyOVyyuE5HA4xmUwAAJlMRjl2ZFlGo9FQLTQajZDNZiGKouKp1WqL8hNLJpPpwWCQ0N3ybySKYpqLxWJHjLFP399s03riOC4dCAQ+fgMeouMzfwx22gAAAABJRU5ErkJggg==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6h4ei8I380zSPJpV1Bps8wibcC7ILeRnBbuAv3BRQB5f+xZ8GvE/7PP7KfgPwT4z8VXHjbxR4b0mKz1HWppJZWvZRk/flJkdUBCK8hLsqBm+YmvUKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooA//9k='
        footer = '''<div>
                      <div align="center">
                      <img src="data:image/jpg;base64,''' + image + '''
                      </div>
                      <div align="right">
                      <p align="right">
                      <b>''' + self.tr(
            'Author: Leandro Franca', 'Autor: Leandro França'
        ) + '''</b>
                      </p>
                      <a target="_blank" rel="noopener noreferrer" href="https://www.udemy.com/user/leandro-luiz-silva-de-franca/"><img title="Udemy" src="data:image/png;base64,''' + dic_BW[
            'udemy'] + '''"></a> <a target="_blank" rel="noopener noreferrer" href="https://www.facebook.com/GEOCAPT/"><img title="Facebook" src="data:image/png;base64,''' + dic_BW[
                'face'] + '''"></a> <a target="_blank" rel="noopener noreferrer" href="https://www.youtube.com/channel/UCLrewDGciytcBG9r0OxTW2w"><img title="Youtube" src="data:image/png;base64,''' + dic_BW[
                    'youtube'] + '''"></a> <a target="_blank" rel="noopener noreferrer" href="https://www.researchgate.net/profile/Leandro_Franca2"><img title="ResearchGate" src="data:image/png;base64,''' + dic_BW[
                        'RG'] + '''"></a> <a target="_blank" rel="noopener noreferrer" href="https://github.com/LEOXINGU"><img title="GitHub" src="data:image/png;base64,''' + dic_BW[
                            'github'] + '''"></a> <a target="_blank" rel="noopener noreferrer" href="https://www.linkedin.com/in/leandro-fran%C3%A7a-93093714b/"><img title="Linkedin" src="data:image/png;base64,''' + dic_BW[
                                'linkedin'] + '''"></a> <a target="_blank" rel="noopener noreferrer" href="http://lattes.cnpq.br/8559852745183879"><img title="Lattes" src="data:image/png;base64,''' + dic_BW[
                                    'lattes'] + '''"></a>
                      </div>
                    </div>'''
        return self.tr(txt_en, txt_pt) + footer

    LINES = 'LINES'
    TYPE = 'TYPE'
    DISTANCE = 'DISTANCE'
    OUTPUT = 'OUTPUT'

    def initAlgorithm(self, config=None):

        self.addParameter(
            QgsProcessingParameterVectorLayer(
                self.LINES, self.tr('Line Layer', 'Camada de Linhas'),
                [QgsProcessing.TypeVectorLine]))

        tipo = [
            self.tr('Start and End points', 'Pontos inicial e final'),
            self.tr('Only End Point', 'Apenas ponto final'),
            self.tr('Only Start Point', 'Apenas ponto inicial')
        ]

        self.addParameter(
            QgsProcessingParameterEnum(self.TYPE,
                                       self.tr('Attributes', 'Atributos'),
                                       options=tipo,
                                       defaultValue=0))

        self.addParameter(
            QgsProcessingParameterNumber(self.DISTANCE,
                                         self.tr('Distance', 'Distância'),
                                         type=1,
                                         defaultValue=25.0))

        self.addParameter(
            QgsProcessingParameterFeatureSink(
                self.OUTPUT, self.tr('Extended lines', 'Linhas estendidas')))

    def processAlgorithm(self, parameters, context, feedback):

        linhas = self.parameterAsVectorLayer(parameters, self.LINES, context)
        if linhas is None:
            raise QgsProcessingException(
                self.invalidSourceError(parameters, self.LINES))

        tipo = self.parameterAsEnum(parameters, self.TYPE, context)

        Distancia = self.parameterAsDouble(parameters, self.DISTANCE, context)
        if Distancia is None or Distancia < 0:
            raise QgsProcessingException(
                self.tr('The input distance must be grater than 0!',
                        'A distância de entrada deve ser maior que 0!'))

        (sink, dest_id) = self.parameterAsSink(parameters, self.OUTPUT,
                                               context, linhas.fields(),
                                               linhas.wkbType(),
                                               linhas.sourceCrs())
        if sink is None:
            raise QgsProcessingException(
                self.invalidSinkError(parameters, self.OUTPUT))

        # Camada de entrada
        SRC = linhas.sourceCrs()
        fields = linhas.fields()
        extensao = linhas.sourceExtent()
        y_max = extensao.yMaximum()
        y_min = extensao.yMinimum()

        # Transformar distancia para graus, se o SRC for Geográfico
        if SRC.isGeographic():
            EPSG = int(SRC.authid().split(':')[-1])
            proj_crs = CRS.from_epsg(EPSG)
            a = proj_crs.ellipsoid.semi_major_metre
            f = 1 / proj_crs.ellipsoid.inverse_flattening
            e2 = f * (2 - f)
            N = a / np.sqrt(1 - e2 * (np.sin(
                (y_min + y_max) / 2))**2)  # Raio de curvatura 1º vertical
            M = a * (1 - e2) / (1 - e2 * (np.sin((y_min + y_max) / 2))**2)**(
                3 / 2.)  # Raio de curvatura meridiana
            R = np.sqrt(M * N)  # Raio médio de Gauss
            theta = Distancia / R
            Distancia = np.degrees(theta)  # Radianos para graus

        # Varrer linhas
        Percent = 100.0 / linhas.featureCount() if linhas.featureCount(
        ) > 0 else 0
        for index, feat in enumerate(linhas.getFeatures()):
            geom = feat.geometry()
            att = feat.attributes()
            if geom:
                if geom.isMultipart():
                    lines = geom.asMultiPolyline()
                    for line in lines:
                        P1 = line[0]
                        P2 = line[1]
                        Pn = line[-1]
                        Pn_1 = line[-2]
                        P_ini = QgsGeometry.fromPointXY(P1)
                        P_fim = QgsGeometry.fromPointXY(Pn)
                        if tipo == 0 or tipo == 2:
                            vetor = array(P1) - array(P2)
                            P = array(P1) + vetor / norm(vetor) * Distancia
                            P1 = QgsPointXY(P[0], P[1])
                        if tipo == 0 or tipo == 1:
                            vetor = array(Pn) - array(Pn_1)
                            P = array(Pn) + vetor / norm(vetor) * Distancia
                            Pn = QgsPointXY(P[0], P[1])
                        if tipo == 0:
                            line = [P1] + line[1:-1] + [Pn]
                        elif tipo == 1:
                            line = line[0:-1] + [Pn]
                        elif tipo == 2:
                            line = [P1] + line[1:]
                        new_geom = QgsGeometry.fromPolylineXY(line)
                        feature = QgsFeature(fields)
                        feature.setAttributes(att)
                        feature.setGeometry(new_geom)
                        sink.addFeature(feature, QgsFeatureSink.FastInsert)
                else:
                    line = geom.asPolyline()
                    P1 = line[0]
                    P2 = line[1]
                    Pn = line[-1]
                    Pn_1 = line[-2]
                    P_ini = QgsGeometry.fromPointXY(P1)
                    P_fim = QgsGeometry.fromPointXY(Pn)
                    if tipo == 0 or tipo == 2:
                        vetor = array(P1) - array(P2)
                        P = array(P1) + vetor / norm(vetor) * Distancia
                        P1 = QgsPointXY(P[0], P[1])
                    if tipo == 0 or tipo == 1:
                        vetor = array(Pn) - array(Pn_1)
                        P = array(Pn) + vetor / norm(vetor) * Distancia
                        Pn = QgsPointXY(P[0], P[1])
                    if tipo == 0:
                        line = [P1] + line[1:-1] + [Pn]
                    elif tipo == 1:
                        line = line[0:-1] + [Pn]
                    elif tipo == 2:
                        line = [P1] + line[1:]
                    new_geom = QgsGeometry.fromPolylineXY(line)
                    feature = QgsFeature(fields)
                    feature.setAttributes(att)
                    feature.setGeometry(new_geom)
                    sink.addFeature(feature, QgsFeatureSink.FastInsert)
            if feedback.isCanceled():
                break
            feedback.setProgress(int((index + 1) * Percent))

        feedback.pushInfo(
            self.tr('Operation completed successfully!',
                    'Operação finalizada com sucesso!'))
        feedback.pushInfo(
            self.tr('Leandro Franca - Cartographic Engineer',
                    'Leandro França - Eng Cart'))

        return {self.OUTPUT: dest_id}