Giter VIP home page Giter VIP logo

Comments (2)

ppKrauss avatar ppKrauss commented on August 22, 2024

ops, em aberto ainda. Registrando procedimentos:

  1. cp data/dump_etc/der_sp_gov-codigosMunicipios-2017-08-27.csv /tmp/
  2. copy der (abaixo)
  3. alter table e update abaixo
CREATE TABLE der (sigla text,municipio_sp text);
COPY der FROM '/tmp/der_sp_gov-codigosMunicipios-2017-08-27.csv' CSV HEADER;
-- faz a troca de sigla-Anatel por sigla-DER no Estado de São Paulo:  
UPDATE io.citybr set abbrev3=upper(der.sigla) 
FROM der  WHERE name2lex(der.municipio_sp)="lexLabel" AND state='SP' AND trim(der.sigla)>'';

-- update io.citybr set abbrev3_uf='SLP'  
-- where state='SP' and abbrev3_uf is null and name='São Luiz do Paraitinga';

-- select * from io.citybr where state='SP' and abbrev3 is null;  -- confere  se algo mais

PS: só teve problema com "sao.luiz.paraitinga" devido à desatualização da tabela fornecida.

from city-codes.

ppKrauss avatar ppKrauss commented on August 22, 2024

Sobre a fonte de dados. Foi encontrada apenas uma "fonte pirata", https://vdocuments.mx/tabela-distancias.html

Para obter a tabela oficial foi realizada uma solicitação em http://www.sic.sp.gov.br pelo protocolo 356531815892. O que estamos publicando é ainda sem confirmação oficial, e sem saber exatamente se foi o DER/SP a autoridades responsável pela tabela de abreviações, ou se foi outra autoridade (pode ter sido um simples anexo a lei, decreto, portaria, etc. do governo SP).

from city-codes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.