From 0dfa408ef535222a9f9678473d6e1b4f94bd3ddd Mon Sep 17 00:00:00 2001 From: Tim Van Campenhout Date: Wed, 27 Nov 2024 10:44:13 +0100 Subject: [PATCH 1/3] #260 udpate deelgemeenten.json --- crabpy/data/deelgemeenten.json | 746 ++++++++++++++-------------- scripts/update_deelgemeente_data.py | 43 +- 2 files changed, 389 insertions(+), 400 deletions(-) diff --git a/crabpy/data/deelgemeenten.json b/crabpy/data/deelgemeenten.json index 4388732..098fe36 100644 --- a/crabpy/data/deelgemeenten.json +++ b/crabpy/data/deelgemeenten.json @@ -59,6 +59,11 @@ "naam": "Hoboken", "gemeente_niscode": "11002" }, + { + "id": "11002W", + "naam": "Borsbeek", + "gemeente_niscode": "11002" + }, { "id": "11004A", "naam": "Boechout", @@ -74,11 +79,6 @@ "naam": "Boom", "gemeente_niscode": "11005" }, - { - "id": "11007A", - "naam": "Borsbeek", - "gemeente_niscode": "11007" - }, { "id": "11008A", "naam": "Brasschaat", @@ -274,16 +274,6 @@ "naam": "Halle", "gemeente_niscode": "11055" }, - { - "id": "11056A", - "naam": "Zwijndrecht", - "gemeente_niscode": "11056" - }, - { - "id": "11056B", - "naam": "Burcht", - "gemeente_niscode": "11056" - }, { "id": "11057A", "naam": "Westmalle", @@ -845,39 +835,54 @@ "gemeente_niscode": "23016" }, { - "id": "23023A", + "id": "23106A", "naam": "Galmaarden", - "gemeente_niscode": "23023" + "gemeente_niscode": "23106" }, { - "id": "23023B", + "id": "23106B", "naam": "Vollezele", - "gemeente_niscode": "23023" + "gemeente_niscode": "23106" }, { - "id": "23023C", + "id": "23106C", "naam": "Tollembeek", - "gemeente_niscode": "23023" + "gemeente_niscode": "23106" }, { - "id": "23024A", + "id": "23106D", "naam": "Gooik", - "gemeente_niscode": "23024" + "gemeente_niscode": "23106" }, { - "id": "23024B", + "id": "23106E", "naam": "Leerbeek", - "gemeente_niscode": "23024" + "gemeente_niscode": "23106" }, { - "id": "23024C", + "id": "23106F", "naam": "Oetingen", - "gemeente_niscode": "23024" + "gemeente_niscode": "23106" }, { - "id": "23024D", + "id": "23106G", "naam": "Kester", - "gemeente_niscode": "23024" + "gemeente_niscode": "23106" + }, + { + "id": "23106H", + "naam": "Herne", + "gemeente_niscode": "23106" + }, + { + "id": "23106I", + "naam": "Herfelingen", + "gemeente_niscode": "23106" + }, + { + "id": "23106J", + "naam": "Sint-Pieters-Kapelle", + "gemeente_niscode": "23106" }, { "id": "23025A", @@ -914,21 +919,6 @@ "naam": "Lembeek", "gemeente_niscode": "23027" }, - { - "id": "23032A", - "naam": "Herne", - "gemeente_niscode": "23032" - }, - { - "id": "23032B", - "naam": "Herfelingen", - "gemeente_niscode": "23032" - }, - { - "id": "23032C", - "naam": "Sint-Pieters-Kapelle", - "gemeente_niscode": "23032" - }, { "id": "23033A", "naam": "Hoeilaart", @@ -2915,9 +2905,29 @@ "gemeente_niscode": "37002" }, { - "id": "37007A", + "id": "37022A", "naam": "Meulebeke", - "gemeente_niscode": "37007" + "gemeente_niscode": "37022" + }, + { + "id": "37022B", + "naam": "Tielt", + "gemeente_niscode": "37022" + }, + { + "id": "37022C", + "naam": "Schuiferskapelle", + "gemeente_niscode": "37022" + }, + { + "id": "37022D", + "naam": "Kanegem", + "gemeente_niscode": "37022" + }, + { + "id": "37022E", + "naam": "Aarsele", + "gemeente_niscode": "37022" }, { "id": "37010A", @@ -2934,31 +2944,6 @@ "naam": "Egem", "gemeente_niscode": "37011" }, - { - "id": "37012A", - "naam": "Ruiselede", - "gemeente_niscode": "37012" - }, - { - "id": "37015A", - "naam": "Tielt", - "gemeente_niscode": "37015" - }, - { - "id": "37015B", - "naam": "Schuiferskapelle", - "gemeente_niscode": "37015" - }, - { - "id": "37015C", - "naam": "Kanegem", - "gemeente_niscode": "37015" - }, - { - "id": "37015D", - "naam": "Aarsele", - "gemeente_niscode": "37015" - }, { "id": "37017A", "naam": "Wielsbeke", @@ -2975,14 +2960,19 @@ "gemeente_niscode": "37017" }, { - "id": "37018A", + "id": "37021A", "naam": "Wingene", - "gemeente_niscode": "37018" + "gemeente_niscode": "37021" }, { - "id": "37018B", + "id": "37021B", "naam": "Zwevezele", - "gemeente_niscode": "37018" + "gemeente_niscode": "37021" + }, + { + "id": "37021C", + "naam": "Ruiselede", + "gemeente_niscode": "37021" }, { "id": "37020A", @@ -3874,16 +3864,6 @@ "naam": "Vosselare", "gemeente_niscode": "44083" }, - { - "id": "44012A", - "naam": "De Pinte", - "gemeente_niscode": "44012" - }, - { - "id": "44012B", - "naam": "Zevergem", - "gemeente_niscode": "44012" - }, { "id": "44013A", "naam": "Destelbergen", @@ -4015,79 +3995,89 @@ "gemeente_niscode": "44021" }, { - "id": "44034A", + "id": "44087A", "naam": "Lochristi", - "gemeente_niscode": "44034" + "gemeente_niscode": "44087" }, { - "id": "44034B", + "id": "44087B", "naam": "Zaffelare", - "gemeente_niscode": "44034" + "gemeente_niscode": "44087" }, { - "id": "44034C", + "id": "44087C", "naam": "Zeveneken", - "gemeente_niscode": "44034" + "gemeente_niscode": "44087" }, { - "id": "44034D", + "id": "44087D", "naam": "Beervelde", - "gemeente_niscode": "44034" + "gemeente_niscode": "44087" + }, + { + "id": "44087E", + "naam": "Wachtebeke", + "gemeente_niscode": "44087" }, { - "id": "44040A", + "id": "44088A", "naam": "Melle", - "gemeente_niscode": "44040" + "gemeente_niscode": "44088" }, { - "id": "44040B", + "id": "44088B", "naam": "Gontrode", - "gemeente_niscode": "44040" + "gemeente_niscode": "44088" }, { - "id": "44043A", + "id": "44088C", "naam": "Merelbeke", - "gemeente_niscode": "44043" + "gemeente_niscode": "44088" }, { - "id": "44043B", + "id": "44088D", "naam": "Bottelare", - "gemeente_niscode": "44043" + "gemeente_niscode": "44088" }, { - "id": "44043C", + "id": "44088E", "naam": "Munte", - "gemeente_niscode": "44043" + "gemeente_niscode": "44088" }, { - "id": "44043D", + "id": "44088F", "naam": "Schelderode", - "gemeente_niscode": "44043" + "gemeente_niscode": "44088" }, { - "id": "44043E", + "id": "44088G", "naam": "Melsen", - "gemeente_niscode": "44043" + "gemeente_niscode": "44088" }, { - "id": "44043F", + "id": "44088H", "naam": "Lemberge", - "gemeente_niscode": "44043" - }, - { - "id": "44045A", - "naam": "Moerbeke", - "gemeente_niscode": "44045" + "gemeente_niscode": "44088" }, { - "id": "44048A", + "id": "44086A", "naam": "Nazareth", - "gemeente_niscode": "44048" + "gemeente_niscode": "44086" }, { - "id": "44048B", + "id": "44086B", "naam": "Eke", - "gemeente_niscode": "44048" + "gemeente_niscode": "44086" + }, + { + "id": "44086C", + "naam": "De Pinte", + "gemeente_niscode": "44086" + }, + { + "id": "44086D", + "naam": "Zevergem", + "gemeente_niscode": "44086" }, { "id": "44052A", @@ -4129,11 +4119,6 @@ "naam": "Deurle", "gemeente_niscode": "44064" }, - { - "id": "44073A", - "naam": "Wachtebeke", - "gemeente_niscode": "44073" - }, { "id": "44085A", "naam": "Waarschoot", @@ -4475,74 +4460,89 @@ "gemeente_niscode": "45065" }, { - "id": "46003A", + "id": "46030A", "naam": "Beveren", - "gemeente_niscode": "46003" + "gemeente_niscode": "46030" }, { - "id": "46003B", + "id": "46030B", "naam": "Vrasene", - "gemeente_niscode": "46003" + "gemeente_niscode": "46030" }, { - "id": "46003C", + "id": "46030C", "naam": "Verrebroek", - "gemeente_niscode": "46003" + "gemeente_niscode": "46030" }, { - "id": "46003D", + "id": "46030D", "naam": "Kieldrecht", - "gemeente_niscode": "46003" + "gemeente_niscode": "46030" }, { - "id": "46003E", + "id": "46030E", "naam": "Doel", - "gemeente_niscode": "46003" + "gemeente_niscode": "46030" }, { - "id": "46003F", + "id": "46030F", "naam": "Kallo", - "gemeente_niscode": "46003" + "gemeente_niscode": "46030" }, { - "id": "46003G", + "id": "46030G", "naam": "Melsele", - "gemeente_niscode": "46003" + "gemeente_niscode": "46030" }, { - "id": "46003H", + "id": "46030H", "naam": "Haasdonk", - "gemeente_niscode": "46003" + "gemeente_niscode": "46030" }, { - "id": "46013A", + "id": "46030I", "naam": "Kruibeke", - "gemeente_niscode": "46013" + "gemeente_niscode": "46030" }, { - "id": "46013B", + "id": "46030J", "naam": "Bazel", - "gemeente_niscode": "46013" + "gemeente_niscode": "46030" }, { - "id": "46013C", + "id": "46030K", "naam": "Rupelmonde", - "gemeente_niscode": "46013" + "gemeente_niscode": "46030" + }, + { + "id": "46030L", + "naam": "Zwijndrecht", + "gemeente_niscode": "46030" }, { - "id": "46014A", + "id": "46030M", + "naam": "Burcht", + "gemeente_niscode": "46030" + }, + { + "id": "46029A", "naam": "Lokeren", - "gemeente_niscode": "46014" + "gemeente_niscode": "46029" }, { - "id": "46014B", + "id": "46029B", "naam": "Eksaarde", - "gemeente_niscode": "46014" + "gemeente_niscode": "46029" }, { - "id": "46014C", + "id": "46029C", "naam": "Daknam", - "gemeente_niscode": "46014" + "gemeente_niscode": "46029" + }, + { + "id": "46029D", + "naam": "Moerbeke", + "gemeente_niscode": "46029" }, { "id": "46020A", @@ -4725,44 +4725,69 @@ "gemeente_niscode": "71020" }, { - "id": "71022A", + "id": "71072A", "naam": "Hasselt", - "gemeente_niscode": "71022" + "gemeente_niscode": "71072" }, { - "id": "71022B", + "id": "71072B", "naam": "Wimmertingen", - "gemeente_niscode": "71022" + "gemeente_niscode": "71072" }, { - "id": "71022C", + "id": "71072C", "naam": "Sint-Lambrechts-Herk", - "gemeente_niscode": "71022" + "gemeente_niscode": "71072" }, { - "id": "71022D", + "id": "71072D", "naam": "Kuringen", - "gemeente_niscode": "71022" + "gemeente_niscode": "71072" }, { - "id": "71022E", + "id": "71072E", "naam": "Stokrooie", - "gemeente_niscode": "71022" + "gemeente_niscode": "71072" }, { - "id": "71022F", + "id": "71072F", "naam": "Kermt", - "gemeente_niscode": "71022" + "gemeente_niscode": "71072" }, { - "id": "71022G", + "id": "71072G", "naam": "Spalbeek", - "gemeente_niscode": "71022" + "gemeente_niscode": "71072" }, { - "id": "71022H", + "id": "71072H", "naam": "Stevoort", - "gemeente_niscode": "71022" + "gemeente_niscode": "71072" + }, + { + "id": "71072I", + "naam": "Kortessem", + "gemeente_niscode": "71072" + }, + { + "id": "71072J", + "naam": "Wintershoven", + "gemeente_niscode": "71072" + }, + { + "id": "71072K", + "naam": "Vliermaalroot", + "gemeente_niscode": "71072" + }, + { + "id": "71072L", + "naam": "Vliermaal", + "gemeente_niscode": "71072" + }, + { + "id": "71072M", + "naam": "Guigoven", + "gemeente_niscode": "71072" }, { "id": "71024A", @@ -4909,11 +4934,6 @@ "naam": "Gelmen", "gemeente_niscode": "71053" }, - { - "id": "71057A", - "naam": "Tessenderlo", - "gemeente_niscode": "71057" - }, { "id": "71066A", "naam": "Zonhoven", @@ -4925,14 +4945,19 @@ "gemeente_niscode": "71067" }, { - "id": "71069A", + "id": "71071A", "naam": "Oostham", - "gemeente_niscode": "71069" + "gemeente_niscode": "71071" }, { - "id": "71069B", + "id": "71071B", "naam": "Kwaadmechelen", - "gemeente_niscode": "71069" + "gemeente_niscode": "71071" + }, + { + "id": "71071C", + "naam": "Tessenderlo", + "gemeente_niscode": "71071" }, { "id": "71070A", @@ -5150,134 +5175,254 @@ "gemeente_niscode": "73001" }, { - "id": "73006A", + "id": "73110A", "naam": "Bilzen", - "gemeente_niscode": "73006" + "gemeente_niscode": "73110" }, { - "id": "73006B", + "id": "73110B", "naam": "Beverst", - "gemeente_niscode": "73006" + "gemeente_niscode": "73110" }, { - "id": "73006C", + "id": "73110C", "naam": "Munsterbilzen", - "gemeente_niscode": "73006" + "gemeente_niscode": "73110" }, { - "id": "73006D", + "id": "73110D", "naam": "Waltwilder", - "gemeente_niscode": "73006" + "gemeente_niscode": "73110" }, { - "id": "73006E", + "id": "73110E", "naam": "Hoelbeek", - "gemeente_niscode": "73006" + "gemeente_niscode": "73110" }, { - "id": "73006F", + "id": "73110F", "naam": "Eigenbilzen", - "gemeente_niscode": "73006" + "gemeente_niscode": "73110" }, { - "id": "73006G", + "id": "73110G", "naam": "Mopertingen", - "gemeente_niscode": "73006" + "gemeente_niscode": "73110" }, { - "id": "73006H", + "id": "73110H", "naam": "Hees", - "gemeente_niscode": "73006" + "gemeente_niscode": "73110" }, { - "id": "73006J", + "id": "73110J", "naam": "Rosmeer", - "gemeente_niscode": "73006" + "gemeente_niscode": "73110" }, { - "id": "73006K", + "id": "73110K", "naam": "Kleine-spouwen", - "gemeente_niscode": "73006" + "gemeente_niscode": "73110" }, { - "id": "73006L", + "id": "73110L", "naam": "Grote-Spouwen", - "gemeente_niscode": "73006" + "gemeente_niscode": "73110" }, { - "id": "73006M", + "id": "73110M", "naam": "Rijkhoven", - "gemeente_niscode": "73006" + "gemeente_niscode": "73110" }, { - "id": "73006N", + "id": "73110N", "naam": "Martenslinde", - "gemeente_niscode": "73006" + "gemeente_niscode": "73110" + }, + { + "id": "73110O", + "naam": "Hoeselt", + "gemeente_niscode": "73110" + }, + { + "id": "73110P", + "naam": "Werm", + "gemeente_niscode": "73110" + }, + { + "id": "73110Q", + "naam": "Romershoven", + "gemeente_niscode": "73110" + }, + { + "id": "73110R", + "naam": "Sint-Huibrechts-Hern", + "gemeente_niscode": "73110" + }, + { + "id": "73110S", + "naam": "Schalkhoven", + "gemeente_niscode": "73110" + }, + { + "id": "73111A", + "naam": "Tongeren", + "gemeente_niscode": "73111" + }, + { + "id": "73111B", + "naam": "Koninksem", + "gemeente_niscode": "73111" + }, + { + "id": "73111C", + "naam": "Neerrepen", + "gemeente_niscode": "73111" }, { - "id": "73009A", + "id": "73111D", + "naam": "Riksingen", + "gemeente_niscode": "73111" + }, + { + "id": "73111E", + "naam": "Henis", + "gemeente_niscode": "73111" + }, + { + "id": "73111F", + "naam": "Berg", + "gemeente_niscode": "73111" + }, + { + "id": "73111G", + "naam": "Mal", + "gemeente_niscode": "73111" + }, + { + "id": "73111H", + "naam": "Sluizen", + "gemeente_niscode": "73111" + }, + { + "id": "73111J", + "naam": "Nerem", + "gemeente_niscode": "73111" + }, + { + "id": "73111K", + "naam": "Vreren", + "gemeente_niscode": "73111" + }, + { + "id": "73111L", + "naam": "Rutten", + "gemeente_niscode": "73111" + }, + { + "id": "73111M", + "naam": "Lauw", + "gemeente_niscode": "73111" + }, + { + "id": "73111N", + "naam": "Widooie", + "gemeente_niscode": "73111" + }, + { + "id": "73111P", + "naam": "Piringen", + "gemeente_niscode": "73111" + }, + { + "id": "73111R", + "naam": "Overrepen", + "gemeente_niscode": "73111" + }, + { + "id": "73111S", + "naam": "'s Herenelderen", + "gemeente_niscode": "73111" + }, + { + "id": "73111T", + "naam": "Haren", + "gemeente_niscode": "73111" + }, + { + "id": "73111U", + "naam": "Kolmont", + "gemeente_niscode": "73111" + }, + { + "id": "73111V", + "naam": "Diets-Heur", + "gemeente_niscode": "73111" + }, + { + "id": "73111W", "naam": "Borgloon", - "gemeente_niscode": "73009" + "gemeente_niscode": "73111" }, { - "id": "73009B", + "id": "73111X", "naam": "Kuttekoven", - "gemeente_niscode": "73009" + "gemeente_niscode": "73111" }, { - "id": "73009C", + "id": "73111Y", "naam": "Kerniel", - "gemeente_niscode": "73009" + "gemeente_niscode": "73111" }, { - "id": "73009D", + "id": "73111Z", "naam": "Gors-Opleeuw", - "gemeente_niscode": "73009" + "gemeente_niscode": "73111" }, { - "id": "73009E", + "id": "73111I", "naam": "Jesseren", - "gemeente_niscode": "73009" + "gemeente_niscode": "73111" }, { - "id": "73009F", + "id": "73111O", "naam": "Bommershoven", - "gemeente_niscode": "73009" + "gemeente_niscode": "73111" }, { - "id": "73009G", + "id": "73111Q", "naam": "Groot-Loon", - "gemeente_niscode": "73009" + "gemeente_niscode": "73111" }, { - "id": "73009H", + "id": "73111AA", "naam": "Broekom", - "gemeente_niscode": "73009" + "gemeente_niscode": "73111" }, { - "id": "73009J", + "id": "73111AB", "naam": "Hendrieken", - "gemeente_niscode": "73009" + "gemeente_niscode": "73111" }, { - "id": "73009K", + "id": "73111AC", "naam": "Voort", - "gemeente_niscode": "73009" + "gemeente_niscode": "73111" }, { - "id": "73009L", + "id": "73111AD", "naam": "Gotem", - "gemeente_niscode": "73009" + "gemeente_niscode": "73111" }, { - "id": "73009M", + "id": "73111AE", "naam": "Hoepertingen", - "gemeente_niscode": "73009" + "gemeente_niscode": "73111" }, { - "id": "73009N", + "id": "73111AF", "naam": "Rijkel", - "gemeente_niscode": "73009" + "gemeente_niscode": "73111" }, { "id": "73022A", @@ -5349,56 +5494,6 @@ "naam": "Herstappe", "gemeente_niscode": "73028" }, - { - "id": "73032A", - "naam": "Hoeselt", - "gemeente_niscode": "73032" - }, - { - "id": "73032B", - "naam": "Werm", - "gemeente_niscode": "73032" - }, - { - "id": "73032C", - "naam": "Romershoven", - "gemeente_niscode": "73032" - }, - { - "id": "73032D", - "naam": "Sint-Huibrechts-Hern", - "gemeente_niscode": "73032" - }, - { - "id": "73032E", - "naam": "Schalkhoven", - "gemeente_niscode": "73032" - }, - { - "id": "73040A", - "naam": "Kortessem", - "gemeente_niscode": "73040" - }, - { - "id": "73040B", - "naam": "Wintershoven", - "gemeente_niscode": "73040" - }, - { - "id": "73040C", - "naam": "Vliermaalroot", - "gemeente_niscode": "73040" - }, - { - "id": "73040D", - "naam": "Vliermaal", - "gemeente_niscode": "73040" - }, - { - "id": "73040E", - "naam": "Guigoven", - "gemeente_niscode": "73040" - }, { "id": "73042A", "naam": "Lanaken", @@ -5474,101 +5569,6 @@ "naam": "Membruggen", "gemeente_niscode": "73066" }, - { - "id": "73083A", - "naam": "Tongeren", - "gemeente_niscode": "73083" - }, - { - "id": "73083B", - "naam": "Koninksem", - "gemeente_niscode": "73083" - }, - { - "id": "73083C", - "naam": "Neerrepen", - "gemeente_niscode": "73083" - }, - { - "id": "73083D", - "naam": "Riksingen", - "gemeente_niscode": "73083" - }, - { - "id": "73083E", - "naam": "Henis", - "gemeente_niscode": "73083" - }, - { - "id": "73083F", - "naam": "Berg", - "gemeente_niscode": "73083" - }, - { - "id": "73083G", - "naam": "Mal", - "gemeente_niscode": "73083" - }, - { - "id": "73083H", - "naam": "Sluizen", - "gemeente_niscode": "73083" - }, - { - "id": "73083J", - "naam": "Nerem", - "gemeente_niscode": "73083" - }, - { - "id": "73083K", - "naam": "Vreren", - "gemeente_niscode": "73083" - }, - { - "id": "73083L", - "naam": "Rutten", - "gemeente_niscode": "73083" - }, - { - "id": "73083M", - "naam": "Lauw", - "gemeente_niscode": "73083" - }, - { - "id": "73083N", - "naam": "Widooie", - "gemeente_niscode": "73083" - }, - { - "id": "73083P", - "naam": "Piringen", - "gemeente_niscode": "73083" - }, - { - "id": "73083R", - "naam": "Overrepen", - "gemeente_niscode": "73083" - }, - { - "id": "73083S", - "naam": "'s Herenelderen", - "gemeente_niscode": "73083" - }, - { - "id": "73083T", - "naam": "Haren", - "gemeente_niscode": "73083" - }, - { - "id": "73083U", - "naam": "Kolmont", - "gemeente_niscode": "73083" - }, - { - "id": "73083V", - "naam": "Diets-Heur", - "gemeente_niscode": "73083" - }, { "id": "73098A", "naam": "Wellen", diff --git a/scripts/update_deelgemeente_data.py b/scripts/update_deelgemeente_data.py index 8886a84..25489d2 100644 --- a/scripts/update_deelgemeente_data.py +++ b/scripts/update_deelgemeente_data.py @@ -1,30 +1,19 @@ -import requests -import tarfile -import os - -from shutil import copyfile, rmtree - -version = "0.3.1" - -download_url = ( - "https://github.com/OnroerendErfgoed/deelgemeenten/archive/v%s.tar.gz" % version -) +import json -localfile = "v%s.tar.gz" % version - -r = requests.get(download_url, stream=True) - -with open(localfile, "wb") as f: - for chunk in r.iter_content(chunk_size=1024): - if chunk: - f.write(chunk) - -tar = tarfile.open(localfile) -tar.extractall() -tar.close() +import requests -datafile = "deelgemeenten-%s/data/json/deelgemeenten.json" % version +# URL to deelgemeenten.json +url = "https://github.com/OnroerendErfgoed/deelgemeenten/raw/refs/heads/master/data/json/deelgemeenten.json" +response = requests.get(url) +deelgemeenten = response.json() +deelgemeenten_mapped = [ + { + "id": deelgemeente["deelgemeente_id"], + "naam": deelgemeente["deelgemeente_naam"], + "gemeente_niscode": deelgemeente["gemeente_id"] + } + for deelgemeente in deelgemeenten +] +with open("../crabpy/data/deelgemeenten.json", "w") as deelgemeenten_file: + json.dump(deelgemeenten_mapped, deelgemeenten_file, indent=2) -copyfile(datafile, "../crabpy/data/deelgemeenten.json") -os.remove(localfile) -rmtree("deelgemeenten-%s" % version) From 6a7c224242e9ce150c4d9bce742729b40d671c69 Mon Sep 17 00:00:00 2001 From: claeyswo Date: Tue, 10 Dec 2024 10:09:04 +0100 Subject: [PATCH 2/3] Refs #264 --- crabpy/data/gemeenten.json | 78 +++++++++++++++++++------------------- 1 file changed, 39 insertions(+), 39 deletions(-) diff --git a/crabpy/data/gemeenten.json b/crabpy/data/gemeenten.json index 3f277c8..b9009bf 100644 --- a/crabpy/data/gemeenten.json +++ b/crabpy/data/gemeenten.json @@ -357,7 +357,7 @@ "naam": "Borsbeek" } ], - "status": "inGebruik" + "status": "gehistoreerd" }, { "niscode": "11008", @@ -732,7 +732,7 @@ "naam": "Zwijndrecht" } ], - "status": "inGebruik" + "status": "gehistoreerd" }, { "niscode": "12002", @@ -1422,7 +1422,7 @@ "naam": "Galmaarden" } ], - "status": "inGebruik" + "status": "gehistoreerd" }, { "niscode": "23024", @@ -1437,7 +1437,7 @@ "naam": "Gooik" } ], - "status": "inGebruik" + "status": "gehistoreerd" }, { "niscode": "23025", @@ -1482,7 +1482,7 @@ "naam": "Herne" } ], - "status": "inGebruik" + "status": "gehistoreerd" }, { "niscode": "23033", @@ -3042,7 +3042,7 @@ "naam": "Meulebeke" } ], - "status": "inGebruik" + "status": "gehistoreerd" }, { "niscode": "37010", @@ -3087,7 +3087,7 @@ "naam": "Ruiselede" } ], - "status": "inGebruik" + "status": "gehistoreerd" }, { "niscode": "37015", @@ -3102,7 +3102,7 @@ "naam": "Tielt" } ], - "status": "inGebruik" + "status": "gehistoreerd" }, { "niscode": "37017", @@ -3132,7 +3132,7 @@ "naam": "Wingene" } ], - "status": "inGebruik" + "status": "gehistoreerd" }, { "niscode": "33039", @@ -3672,7 +3672,7 @@ "naam": "De Pinte" } ], - "status": "inGebruik" + "status": "gehistoreerd" }, { "niscode": "44083", @@ -3777,7 +3777,7 @@ "naam": "Lochristi" } ], - "status": "inGebruik" + "status": "gehistoreerd" }, { "niscode": "44040", @@ -3792,7 +3792,7 @@ "naam": "Melle" } ], - "status": "inGebruik" + "status": "gehistoreerd" }, { "niscode": "44043", @@ -3807,7 +3807,7 @@ "naam": "Merelbeke" } ], - "status": "inGebruik" + "status": "gehistoreerd" }, { "niscode": "44045", @@ -3822,7 +3822,7 @@ "naam": "Moerbeke" } ], - "status": "inGebruik" + "status": "gehistoreerd" }, { "niscode": "44048", @@ -3837,7 +3837,7 @@ "naam": "Nazareth" } ], - "status": "inGebruik" + "status": "gehistoreerd" }, { "niscode": "44052", @@ -3882,7 +3882,7 @@ "naam": "Wachtebeke" } ], - "status": "inGebruik" + "status": "gehistoreerd" }, { "niscode": "44081", @@ -3912,7 +3912,7 @@ "naam": "Beveren" } ], - "status": "inGebruik" + "status": "gehistoreerd" }, { "niscode": "46013", @@ -3927,7 +3927,7 @@ "naam": "Kruibeke" } ], - "status": "inGebruik" + "status": "gehistoreerd" }, { "niscode": "46014", @@ -3942,7 +3942,7 @@ "naam": "Lokeren" } ], - "status": "inGebruik" + "status": "gehistoreerd" }, { "niscode": "46021", @@ -4272,7 +4272,7 @@ "naam": "Ham" } ], - "status": "inGebruik" + "status": "gehistoreerd" }, { "niscode": "71022", @@ -4287,7 +4287,7 @@ "naam": "Hasselt" } ], - "status": "inGebruik" + "status": "gehistoreerd" }, { "niscode": "71024", @@ -4377,7 +4377,7 @@ "naam": "Tessenderlo" } ], - "status": "inGebruik" + "status": "gehistoreerd" }, { "niscode": "71066", @@ -4617,7 +4617,7 @@ "naam": "Bilzen" } ], - "status": "inGebruik" + "status": "gehistoreerd" }, { "niscode": "73109", @@ -4677,7 +4677,7 @@ "naam": "Hoeselt" } ], - "status": "inGebruik" + "status": "gehistoreerd" }, { "niscode": "73040", @@ -4692,7 +4692,7 @@ "naam": "Kortessem" } ], - "status": "inGebruik" + "status": "gehistoreerd" }, { "niscode": "73042", @@ -4722,7 +4722,7 @@ "naam": "Borgloon" } ], - "status": "inGebruik" + "status": "gehistoreerd" }, { "niscode": "73107", @@ -4767,7 +4767,7 @@ "naam": "Tongeren" } ], - "status": "inGebruik" + "status": "gehistoreerd" }, { "niscode": "73098", @@ -8742,7 +8742,7 @@ "naam": "Beveren-Kruibeke-Zwijndrecht" } ], - "status": "voorgesteld" + "status": "inGebruik" }, { "niscode": "73110", @@ -8757,7 +8757,7 @@ "naam": "Bilzen-Hoeselt" } ], - "status": "voorgesteld" + "status": "inGebruik" }, { "niscode": "73111", @@ -8772,7 +8772,7 @@ "naam": "Tongeren-Borgloon" } ], - "status": "voorgesteld" + "status": "inGebruik" }, { "niscode": "44086", @@ -8787,7 +8787,7 @@ "naam": "Nazareth-De Pinte" } ], - "status": "voorgesteld" + "status": "inGebruik" }, { "niscode": "71072", @@ -8802,7 +8802,7 @@ "naam": "Hasselt" } ], - "status": "voorgesteld" + "status": "inGebruik" }, { "niscode": "71071", @@ -8817,7 +8817,7 @@ "naam": "Tessenderlo-Ham" } ], - "status": "voorgesteld" + "status": "inGebruik" }, { "niscode": "37022", @@ -8832,7 +8832,7 @@ "naam": "Tielt" } ], - "status": "voorgesteld" + "status": "inGebruik" }, { "niscode": "44087", @@ -8847,7 +8847,7 @@ "naam": "Lochristi" } ], - "status": "voorgesteld" + "status": "inGebruik" }, { "niscode": "37021", @@ -8862,7 +8862,7 @@ "naam": "Wingene" } ], - "status": "voorgesteld" + "status": "inGebruik" }, { "niscode": "44088", @@ -8877,7 +8877,7 @@ "naam": "Merelbeke-Melle" } ], - "status": "voorgesteld" + "status": "inGebruik" }, { "niscode": "46029", @@ -8892,7 +8892,7 @@ "naam": "Lokeren" } ], - "status": "voorgesteld" + "status": "inGebruik" }, { "niscode": "23106", @@ -8907,6 +8907,6 @@ "naam": "Pajottegem" } ], - "status": "voorgesteld" + "status": "inGebruik" } ] \ No newline at end of file From 19647d820c071faf07e104645053f7a99dd1e982 Mon Sep 17 00:00:00 2001 From: Wouter Claeys Date: Tue, 10 Dec 2024 10:29:20 +0100 Subject: [PATCH 3/3] Bump version --- CHANGES.rst | 6 ++++++ pyproject.toml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index d449dc7..dd47405 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,3 +1,9 @@ +1.6.0 (10-12-2024) +------------------ + +- Update deelgemeenten na gemeentefusies 2025 (#260) +- Nieuwe gemeenten activeren (#264) + 1.5.1 (25-11-2024) ------------------ diff --git a/pyproject.toml b/pyproject.toml index b9ec69e..e54e849 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["hatchling"] build-backend = "hatchling.build" [project] -version = "1.5.1" +version = "1.6.0" name = "crabpy" readme = "README.md" authors = [