Here is my issue:
I wish to delete all rows at row-group-view
if i delete a group from group
or if i delete a view
from view.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Preenche dois selects, um com os estados brasileiros e o outro com os municipios daquele estado | |
// conforme o estado vai mudando | |
// a `option` do estado tem o valor a sigla do estado, e o texto interno o nome do estado | |
// a `option'do município tem o valor o geocódgo (IBGE) do município e o texto o nome do município | |
// geocódigo é o código IBGE para a região demarcada por ele, como estados e municípios. | |
// Não estou usando geocódigo nos estados... | |
const estados = document.getElementById('id-do-select-do-estado'); | |
const muncipiosDoEstado = document.getElementById('id-do-select-do-municipio'); | |
function populaSelecao(opcoes, elemento) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Faz transposição de dados usando como coluna os valores no segundo campo da | |
da camada e o terceiro como valores. | |
A camada a ser transposta precisa estar ativa no painel de camadas. | |
""" | |
from copy import copy | |
from qgis.PyQt.QtCore import QVariant |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os, sys, shutil | |
from qgis.PyQt.QtWidgets import QFileDialog | |
getFolder = QFileDialog().getExistingDirectory() | |
arquivos = [] | |
def renameFile(filePath, newFileName): | |
"""Funcao que renomeia o arquivo extraido""" | |
newName = f"{filePath}{os.sep}{newFileName.split('.')[0]}.kml" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SerialDisplay.h> | |
#include <ArduinoJson.h> | |
#include <ESP8266WiFi.h> | |
#include <WiFiClientSecure.h> | |
char ssid[] = "NOME_DA_REDE"; // sua rede wifi | |
char password[] = "SENHA_DA_REDE"; // sua senha | |
char channelId[] = "ID_DO_CANAL"; // ID do seu canal | |
char apiKey[] = "CHAVE_DA_API"; // chave da API | |
SerialDisplay displays(14, 12, 10); // (data D5, clock D6, qtde de modulos) | |
WiFiClientSecure client; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This script rename files using a csv list that contains | |
# img_Id, file_name, new_name, receiving_folder | |
# it will create all new folders needed to paste the copies | |
# And paste them inside the receiving_folder | |
# Created by Kyle Felipe | |
# kylefelipe at gmail.com | |
import os | |
import csv | |
from shutil import copy2 as copy |
This is a issue using cross-layer filter provided by querylayer extension
LayerA - intersection_geom -> GEOMETRY, layer geometry;
LayerB - cd_bioma -> INTEGER, biome code; geom -> GEOMETRY, layer geometry;
intersects(intersection_geom, querySingle(layerB, 'geom', 'cd_bioma=1'))
# Estados que queremos pegar os municípios
nomes = ['Minas Gerais', 'Paraíba', 'Espírito Santo', 'Goiás', 'Sergipe']
nomes = [f"'{nome}'" for nome in nomes]
# Pegando apenas as feições que precisamos
estados = QgsProject.instance().mapLayersByName('lim_unidade_federacao_a')[0]
subset_string = f"nome in ({','.join(nomes)})"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Expression to be used at SELECT BY EXPRESSION AT LAYER A | |
array_contains( -- This will return true if the array contains the value | |
aggregate( -- will aggregate all values from target in to a string, using semicolons as concatenator | |
layer:='<table_b>', -- Target table containing the values, replace <table_b> whith your table name | |
aggregate:='array_agg', | |
expression:=to_string("<field_from_table_b>"), -- Field from table_b containing the values | |
), | |
"<field_table_a>") -- Field from table a with values to compare, replace <field_table_a> with your field name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// adaptado de https://github.com/tryber/sd-05-live-lectures/blob/39.1/expressoes.py | |
const MATCHES = { | |
'}': '{', | |
']': '[', | |
')': '(', | |
'"': '"', | |
"'": "'", | |
"`": "`", | |
"```": "```" | |
}; |