| nome_municipio | cod_ibge_m | qtde_registros |
|---|---|---|
| Paranatinga | 5106307 | 1.298.406 |
| Nova Mutum | 5106224 | 1.182.312 |
| Comodoro | 5103304 | 1.070.396 |
| Diamantino | 5103502 | 485.497 |
| Rondolândia | 5107578 | 420.308 |
| Cassilândia | 5002902 | 389.082 |
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
| """ | |
| Script para processar dados de aptidão agrícola | |
| Realiza clip de geometrias com grade, análise espacial e exportação de dados | |
| """ | |
| import geopandas as gpd | |
| from decouple import config | |
| from sqlalchemy import create_engine | |
| import os | |
| import gc # Importa o módulo garbage collector para gerenciamento de memória |
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
| <!DOCTYPE html> | |
| <html lang="pt-BR"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Explorador de Tabelas Supabase com Vue.js</title> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/css/bootstrap.min.css"> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <style> | |
| body { |
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
| -- Resposta 1: | |
| SELECT | |
| p.nome AS nome_proprietario, | |
| p.sobrenome AS sobrenome_proprietario, | |
| ir.nome AS nome_imovel, | |
| v.nome_variedade | |
| FROM | |
| proprietario p | |
| JOIN | |
| imovel_rural ir ON p.id = ir.proprietario_id |
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
| # instalar via PIP: | |
| # pip install git+https://github.com/urbanogilson/SICAR | |
| from SICAR import Sicar, State, Polygon | |
| import pprint | |
| # Create Sicar instance | |
| car = Sicar() | |
| # Get release data dates |
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
| # Substitua o path, apontando para o seu GeoPackage: | |
| gpkg = '/Users/marcellodebarrosfilho/code/curso_geopandas/dados/pb.gpkg' | |
| drenagem = f'{gpkg}|layername=drenagem' | |
| # 1. Filtrar o rio, em função do seu nome | |
| # nome do rio (verifique na tabela de atributos) | |
| value = 'Rio Paraíba' | |
| # raio do buffer | |
| radius = 6000 |
Modelo: https://goo.gl/pxqx5t
- Selecione todos os proprietários, cujo sexo é 'Masculino' e que começam com o nome 'José' (1,0 ponto).
- Selecione todos os imóveis rurais, com áreas maiores que 1000 ha e menores que 2500 ha, ordenados pelo tamanho de área, da menor para a maior (2,0 pontos).
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
| -- CREATE EXTENSION dblink; | |
| -- Inserindo no SIG-ITR | |
| TRUNCATE maps_incrasigef CASCADE; | |
| INSERT INTO maps_incrasigef (id, | |
| parcela_co, rt, art, situacao_i, codigo_imo, data_submi, data_aprov, status, nome_area, registro_m, registro_d, municipio, uf_id, geom) | |
| SELECT * FROM dblink( | |
| 'dbname=teste_sigef host=localhost user=postgres password=postgres', |
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
| var center = [-7.1990, -36.4663]; | |
| var initialZoom = 8; | |
| var osm = L.tileLayer( | |
| 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', { | |
| attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors' | |
| }); | |
| var googleStreets = L.tileLayer( | |
| 'http://{s}.google.com/vt/lyrs=m&x={x}&y={y}&z={z}', { |
NewerOlder

