CNEFE/Pontos basicos: mudanças entre as edições

m
sem sumário de edição
(Criou página com 'Ingestão. Ver Carlos, colocou na base IBGE, na tabela ibge_pontos. Tudo text. <pre> create table ibge_pontos ( 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_E...')
 
mSem resumo de edição
Linha 1: Linha 1:
Ingestão. Ver Carlos, colocou na base IBGE, na tabela ibge_pontos. Tudo text.
Ingestão. Ver Carlos, colocou na base IBGE, na tabela ibge_pontos. Tudo text.
<pre>
<syntaxhighlight lang="sql" style="font-size: 80%;">
create table ibge_pontos (
create table ibge_pontos (
   COD_UNICO_ENDERECO text,
   COD_UNICO_ENDERECO text,
Linha 8: Linha 8:
  VAL_COMP_ELEM5 text,  
  VAL_COMP_ELEM5 text,  
  LATITUDE text, LONGITUDE text, 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);
  LATITUDE text, LONGITUDE text, 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);
</pre>
</syntaxhighlight>


* ntot_geral=111102875; <code>select count(*) ntot_geral from ibge_pontos;</code>
* ntot_geral=111102875; <code>select count(*) ntot_geral from ibge_pontos;</code>
Linha 15: Linha 15:
Filtro 1: eliminação dos endereços com coordenada de muito baixa confiabilidade. O percentual por estado mostra que o impacto é baixo.. Exceto pelo estado 33 onde a perda é de 1%.  No futuro vale estudar casos de estados 29, 32, 33, 35 e 41, onde foi igual ou maior que 0.5%. Ideal fazer estudo por município, e avaliação do caso de áreas rurais.
Filtro 1: eliminação dos endereços com coordenada de muito baixa confiabilidade. O percentual por estado mostra que o impacto é baixo.. Exceto pelo estado 33 onde a perda é de 1%.  No futuro vale estudar casos de estados 29, 32, 33, 35 e 41, onde foi igual ou maior que 0.5%. Ideal fazer estudo por município, e avaliação do caso de áreas rurais.


* ntot_bad_point=358038; <code>select count(*) ntot_bad_point from ibge_pontos where NV_GEO_COORD::int>3;</code>
* ntot_bad_point=358038 (0.3% de ntot_geral); <code>select count(*) ntot_bad_point from ibge_pontos where NV_GEO_COORD::int>3;</code>


<pre>
<syntaxhighlight lang="sql" style="font-size: 80%;">
with tot as (select cod_uf, count(*) ntot from ibge_pontos group by 1 order by 1) select *, round((100.0*n::float/ntot)::numeric,2) as perc from ( select t.cod_uf, tot.ntot, count(t.*) n from ibge_pontos t inner join tot ON tot.cod_uf=t.cod_uf where t.NV_GEO_COORD::int>3 group by 1,2) t2 order by 1;
with tot as (select cod_uf, count(*) ntot from ibge_pontos group by 1 order by 1) select *, round((100.0*n::float/ntot)::numeric,2) as perc from ( select t.cod_uf, tot.ntot, count(t.*) n from ibge_pontos t inner join tot ON tot.cod_uf=t.cod_uf where t.NV_GEO_COORD::int>3 group by 1,2) t2 order by 1;
</pre>
</syntaxhighlight>
Perfil:<pre>
Perfil:<pre>
  cod_uf |  ntot  |  n    | perc  
  cod_uf |  ntot  |  n    | perc  
2 583

edições