2 391
edições
Sem resumo de edição |
m (→Queries: add r4) |
||
Linha 236: | Linha 236: | ||
where isolabel_ext like 'CO-ARA-%' | where isolabel_ext like 'CO-ARA-%' | ||
group by 1,2 order by 1,2; | group by 1,2 order by 1,2; | ||
-- R4. Testar contra qwerty2, que tem comjunto consistente. Aqui apenas CA e CO apresentam parte consistente. | |||
select substr(isolabel_ext,1,2) as iso, len, round(avg(a),1) area_avg, max(a) area_max, count(*) n | |||
from ( | |||
select isolabel_ext, length(cbits) len, round(st_area(geom)/10000.0) a, is_contained, is_overlay | |||
from osmc.coverage where is_contained order by 2 desc,1 | |||
) t group by 1,2 order by 1,2 | |||
; | |||
</syntaxhighlight> | </syntaxhighlight> | ||
edições