include CE & ML on loops; create again geojsons

This commit is contained in:
Hugoren Martinako 2022-01-05 20:43:51 +01:00
parent 5f64833e46
commit 64dcd1ef5f
5 changed files with 4 additions and 6 deletions

View File

@ -8,8 +8,6 @@ __root="$(cd "$(dirname "$(dirname "${BASH_SOURCE[0]}")")" && pwd)"
# merge reports by CCAA with their features
function generate_reports() {
for i in AN AR AS CB CE CL CM CN CT EX GA IB MC MD ML NC PV RI VC; do
# missing Ceuta & Melilla
# for i in AN AR AS CB CL CM CN CT EX GA IB MC MD NC PV RI VC; do
"${__root}/bin/merge" --reports "$(grep -lnrw "${__root}/reports" -e ES-"${i}")" --feature "${__root}/features/municipios/${i}.feature.geojson" --name "$1/${i}.topo.json";
sum_reports "${i}" > "${__root}/${i}.agg"
done

View File

@ -13,7 +13,7 @@ REGIONS=("${@:-ES}")
if [[ "${1,,}" == "ccaa" ]]; then
REGIONS=(AN AR AS CB CE CL CM CN CT EX GA IB MC MD ML NC PV RI VC)
elif [[ "${1,,}" == "prov" ]]; then
REGIONS=(A AB AL AV B BA BI BU C CA CC CO CR CS CU GC GI GR GU H HU J L LE LO LU M MA MU NA O OR P PM PO S SA SE SG SO SS T TE TF TO V VA VI Z ZA)
REGIONS=(A AB AL AV B BA BI BU C CA CC CE CO CR CS CU GC GI GR GU H HU J L LE LO LU M MA ML MU NA O OR P PM PO S SA SE SG SO SS T TE TF TO V VA VI Z ZA)
fi
# root path project

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long