2 402
edições
(Criou página com ' CNEFE - Cadastro Nacional de Endereços para Fins Estatísticos Ver https://www.ibge.gov.br/estatisticas/sociais/populacao/38734-cadastro-nacional-de-enderecos-para-fins-estatisticos.html?edicao=40122&t=resultados == Faces de Quadra == == Pontos ==') |
(→Pontos) |
||
Linha 9: | Linha 9: | ||
== Pontos == | == Pontos == | ||
Por cidade temos [https://www.ibge.gov.br/estatisticas/downloads-estatisticas.html?caminho=Cadastro_Nacional_de_Enderecos_para_Fins_Estatisticos/Censo_Demografico_2022/Arquivos_CNEFE/Municipio Censo_Demografico_2022/Arquivos_CNEFE/Municipio], direto latLong em srid=4326. | |||
Pelo cabeçalho podemos copiar para uma tabela texto, | |||
<pre> | |||
CREATE TABLE ibge_cnefe2022 ( | |||
COD_UNICO_ENDERECO text, | |||
COD_UF text, | |||
COD_MUNICIPIO text, | |||
COD_DISTRITO text, | |||
COD_SUBDISTRITO text, | |||
COD_SETOR text, | |||
NUM_QUADRA text, | |||
NUM_FACE text, | |||
CEP text, | |||
DSC_LOCALIDADE text, | |||
NOM_TIPO_SEGLOGR text, | |||
NOM_TITULO_SEGLOGR text, | |||
NOM_SEGLOGR text, | |||
NUM_ENDERECO text, | |||
DSC_MODIFICADOR text, | |||
NOM_COMP_ELEM1 text, | |||
VAL_COMP_ELEM1 text, | |||
NOM_COMP_ELEM2 text, | |||
VAL_COMP_ELEM2 text, | |||
NOM_COMP_ELEM3 text, | |||
VAL_COMP_ELEM3 text, | |||
NOM_COMP_ELEM4 text, | |||
VAL_COMP_ELEM4 text, | |||
NOM_COMP_ELEM5 text, | |||
VAL_COMP_ELEM5 text, | |||
LATITUDE real, | |||
LONGITUDE real, | |||
NV_GEO_COORD text, | |||
COD_ESPECIE text, | |||
DSC_ESTABELECIMENTO text, | |||
COD_INDICADOR_ESTAB_ENDERECO text, | |||
COD_INDICADOR_CONST_ENDERECO text, | |||
COD_INDICADOR_FINALIDADE_CONST text, | |||
COD_TIPO_ESPECI text | |||
); | |||
copy ibge_cnefe2022 from '/tmp/POA_FACES/4314902_PORTO_ALEGRE.csv' with (format CSV, delimiter ';', header); | |||
</pre> |
edições