add history for zone command
This commit is contained in:
parent
2b07e6a4c6
commit
45df535a35
12 changed files with 1071 additions and 854 deletions
|
|
@ -1,247 +0,0 @@
|
|||
{
|
||||
"themes": {
|
||||
"borne-de-recharge": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_59140",
|
||||
"theme": "borne-de-recharge",
|
||||
"nombre_total": 0,
|
||||
"nombre_avec_operator": 0,
|
||||
"nombre_avec_capacity": 0,
|
||||
"pourcentage_completion": 0
|
||||
},
|
||||
"borne-incendie": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_59140",
|
||||
"theme": "borne-incendie",
|
||||
"nombre_total": 0,
|
||||
"nombre_avec_ref": 0,
|
||||
"nombre_avec_colour": 0,
|
||||
"pourcentage_completion": 0
|
||||
},
|
||||
"arbres": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_59140",
|
||||
"theme": "arbres",
|
||||
"nombre_total": 0,
|
||||
"nombre_avec_species": 0,
|
||||
"nombre_avec_leaf_type": 0,
|
||||
"pourcentage_completion": 0
|
||||
},
|
||||
"defibrillator": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_59140",
|
||||
"theme": "defibrillator",
|
||||
"nombre_total": 0,
|
||||
"nombre_avec_operator": 0,
|
||||
"nombre_avec_access": 0,
|
||||
"pourcentage_completion": 0
|
||||
},
|
||||
"toilets": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_59140",
|
||||
"theme": "toilets",
|
||||
"nombre_total": 0,
|
||||
"nombre_avec_access": 0,
|
||||
"nombre_avec_wheelchair": 0,
|
||||
"pourcentage_completion": 0
|
||||
},
|
||||
"bus_stop": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_59140",
|
||||
"theme": "bus_stop",
|
||||
"nombre_total": 3,
|
||||
"nombre_avec_name": 3,
|
||||
"nombre_avec_shelter": 3,
|
||||
"pourcentage_completion": 100.0
|
||||
},
|
||||
"camera": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_59140",
|
||||
"theme": "camera",
|
||||
"nombre_total": 0,
|
||||
"nombre_avec_operator": 0,
|
||||
"nombre_avec_surveillance": 0,
|
||||
"pourcentage_completion": 0
|
||||
},
|
||||
"recycling": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_59140",
|
||||
"theme": "recycling",
|
||||
"nombre_total": 0,
|
||||
"nombre_avec_recycling_type": 0,
|
||||
"nombre_avec_operator": 0,
|
||||
"pourcentage_completion": 0
|
||||
},
|
||||
"substation": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_59140",
|
||||
"theme": "substation",
|
||||
"nombre_total": 2,
|
||||
"nombre_avec_operator": 0,
|
||||
"nombre_avec_voltage": 0,
|
||||
"pourcentage_completion": 0.0
|
||||
},
|
||||
"laboratory": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_59140",
|
||||
"theme": "laboratory",
|
||||
"nombre_total": 0,
|
||||
"nombre_avec_name": 0,
|
||||
"nombre_avec_operator": 0,
|
||||
"pourcentage_completion": 0
|
||||
},
|
||||
"school": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_59140",
|
||||
"theme": "school",
|
||||
"nombre_total": 1,
|
||||
"nombre_avec_name": 0,
|
||||
"nombre_avec_operator": 0,
|
||||
"pourcentage_completion": 0.0
|
||||
},
|
||||
"police": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_59140",
|
||||
"theme": "police",
|
||||
"nombre_total": 0,
|
||||
"nombre_avec_name": 0,
|
||||
"nombre_avec_operator": 0,
|
||||
"pourcentage_completion": 0
|
||||
},
|
||||
"healthcare": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_59140",
|
||||
"theme": "healthcare",
|
||||
"nombre_total": 0,
|
||||
"nombre_avec_name": 0,
|
||||
"nombre_avec_healthcare": 0,
|
||||
"pourcentage_completion": 0
|
||||
},
|
||||
"bicycle_parking": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_59140",
|
||||
"theme": "bicycle_parking",
|
||||
"nombre_total": 0,
|
||||
"nombre_avec_capacity": 0,
|
||||
"nombre_avec_covered": 0,
|
||||
"pourcentage_completion": 0
|
||||
},
|
||||
"advertising_board": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_59140",
|
||||
"theme": "advertising_board",
|
||||
"nombre_total": 0,
|
||||
"nombre_avec_operator": 0,
|
||||
"pourcentage_completion": 0
|
||||
},
|
||||
"building": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_59140",
|
||||
"theme": "building",
|
||||
"nombre_total": 620,
|
||||
"nombre_avec_building": 0,
|
||||
"nombre_avec_addr:housenumber": 0,
|
||||
"pourcentage_completion": 0.0
|
||||
},
|
||||
"email": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_59140",
|
||||
"theme": "email",
|
||||
"nombre_total": 2,
|
||||
"nombre_avec_email": 0,
|
||||
"nombre_avec_contact:email": 0,
|
||||
"pourcentage_completion": 0.0
|
||||
},
|
||||
"bench": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_59140",
|
||||
"theme": "bench",
|
||||
"nombre_total": 0,
|
||||
"pourcentage_completion": 0
|
||||
},
|
||||
"waste_basket": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_59140",
|
||||
"theme": "waste_basket",
|
||||
"nombre_total": 0,
|
||||
"pourcentage_completion": 0
|
||||
},
|
||||
"street_lamp": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_59140",
|
||||
"theme": "street_lamp",
|
||||
"nombre_total": 0,
|
||||
"pourcentage_completion": 0
|
||||
},
|
||||
"drinking_water": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_59140",
|
||||
"theme": "drinking_water",
|
||||
"nombre_total": 0,
|
||||
"pourcentage_completion": 0
|
||||
},
|
||||
"power_pole": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_59140",
|
||||
"theme": "power_pole",
|
||||
"nombre_total": 49,
|
||||
"pourcentage_completion": 0
|
||||
},
|
||||
"manhole": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_59140",
|
||||
"theme": "manhole",
|
||||
"nombre_total": 0,
|
||||
"pourcentage_completion": 0
|
||||
},
|
||||
"little_free_library": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_59140",
|
||||
"theme": "little_free_library",
|
||||
"nombre_total": 0,
|
||||
"pourcentage_completion": 0
|
||||
},
|
||||
"playground": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_59140",
|
||||
"theme": "playground",
|
||||
"nombre_total": 0,
|
||||
"pourcentage_completion": 0
|
||||
},
|
||||
"siret": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_59140",
|
||||
"theme": "siret",
|
||||
"nombre_total": 2,
|
||||
"pourcentage_completion": 0
|
||||
},
|
||||
"restaurants": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_59140",
|
||||
"theme": "restaurants",
|
||||
"nombre_total": 0,
|
||||
"nombre_avec_opening_hours": 0,
|
||||
"nombre_avec_contact:street": 0,
|
||||
"nombre_avec_contact:housenumber": 0,
|
||||
"nombre_avec_website": 0,
|
||||
"nombre_avec_contact:phone": 0,
|
||||
"pourcentage_completion": 0
|
||||
},
|
||||
"rnb": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_59140",
|
||||
"theme": "rnb",
|
||||
"nombre_total": 0,
|
||||
"pourcentage_completion": 0
|
||||
}
|
||||
},
|
||||
"metadata": {
|
||||
"insee_code": "59140",
|
||||
"creation_date": "2025-08-21 11:12:20",
|
||||
"polygon_file": "commune_59140.poly",
|
||||
"osm_data_file": "france-latest.osm.pbf",
|
||||
"total_objects": 679,
|
||||
"average_completion": 0.4418262150220913,
|
||||
"theme_count": 7
|
||||
}
|
||||
}
|
||||
|
|
@ -1,247 +0,0 @@
|
|||
{
|
||||
"themes": {
|
||||
"borne-de-recharge": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_78123",
|
||||
"theme": "borne-de-recharge",
|
||||
"nombre_total": 0,
|
||||
"nombre_avec_operator": 0,
|
||||
"nombre_avec_capacity": 0,
|
||||
"pourcentage_completion": 0
|
||||
},
|
||||
"borne-incendie": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_78123",
|
||||
"theme": "borne-incendie",
|
||||
"nombre_total": 14,
|
||||
"nombre_avec_ref": 0,
|
||||
"nombre_avec_colour": 0,
|
||||
"pourcentage_completion": 0
|
||||
},
|
||||
"arbres": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_78123",
|
||||
"theme": "arbres",
|
||||
"nombre_total": 78,
|
||||
"nombre_avec_species": 0,
|
||||
"nombre_avec_leaf_type": 2,
|
||||
"pourcentage_completion": 1.28
|
||||
},
|
||||
"defibrillator": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_78123",
|
||||
"theme": "defibrillator",
|
||||
"nombre_total": 0,
|
||||
"nombre_avec_operator": 0,
|
||||
"nombre_avec_access": 0,
|
||||
"pourcentage_completion": 0
|
||||
},
|
||||
"toilets": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_78123",
|
||||
"theme": "toilets",
|
||||
"nombre_total": 2,
|
||||
"nombre_avec_access": 0,
|
||||
"nombre_avec_wheelchair": 1,
|
||||
"pourcentage_completion": 25.0
|
||||
},
|
||||
"bus_stop": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_78123",
|
||||
"theme": "bus_stop",
|
||||
"nombre_total": 57,
|
||||
"nombre_avec_name": 0,
|
||||
"nombre_avec_shelter": 0,
|
||||
"pourcentage_completion": 0.0
|
||||
},
|
||||
"camera": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_78123",
|
||||
"theme": "camera",
|
||||
"nombre_total": 3,
|
||||
"nombre_avec_operator": 0,
|
||||
"nombre_avec_surveillance": 0,
|
||||
"pourcentage_completion": 0.0
|
||||
},
|
||||
"recycling": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_78123",
|
||||
"theme": "recycling",
|
||||
"nombre_total": 199,
|
||||
"nombre_avec_recycling_type": 0,
|
||||
"nombre_avec_operator": 0,
|
||||
"pourcentage_completion": 0.0
|
||||
},
|
||||
"substation": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_78123",
|
||||
"theme": "substation",
|
||||
"nombre_total": 1,
|
||||
"nombre_avec_operator": 0,
|
||||
"nombre_avec_voltage": 0,
|
||||
"pourcentage_completion": 0.0
|
||||
},
|
||||
"laboratory": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_78123",
|
||||
"theme": "laboratory",
|
||||
"nombre_total": 1,
|
||||
"nombre_avec_name": 0,
|
||||
"nombre_avec_operator": 0,
|
||||
"pourcentage_completion": 0.0
|
||||
},
|
||||
"school": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_78123",
|
||||
"theme": "school",
|
||||
"nombre_total": 15,
|
||||
"nombre_avec_name": 0,
|
||||
"nombre_avec_operator": 0,
|
||||
"pourcentage_completion": 0.0
|
||||
},
|
||||
"police": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_78123",
|
||||
"theme": "police",
|
||||
"nombre_total": 1,
|
||||
"nombre_avec_name": 0,
|
||||
"nombre_avec_operator": 0,
|
||||
"pourcentage_completion": 0.0
|
||||
},
|
||||
"healthcare": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_78123",
|
||||
"theme": "healthcare",
|
||||
"nombre_total": 7,
|
||||
"nombre_avec_name": 0,
|
||||
"nombre_avec_healthcare": 0,
|
||||
"pourcentage_completion": 0.0
|
||||
},
|
||||
"bicycle_parking": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_78123",
|
||||
"theme": "bicycle_parking",
|
||||
"nombre_total": 5,
|
||||
"nombre_avec_capacity": 0,
|
||||
"nombre_avec_covered": 0,
|
||||
"pourcentage_completion": 0.0
|
||||
},
|
||||
"advertising_board": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_78123",
|
||||
"theme": "advertising_board",
|
||||
"nombre_total": 0,
|
||||
"nombre_avec_operator": 0,
|
||||
"pourcentage_completion": 0
|
||||
},
|
||||
"building": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_78123",
|
||||
"theme": "building",
|
||||
"nombre_total": 2713,
|
||||
"nombre_avec_building": 0,
|
||||
"nombre_avec_addr:housenumber": 0,
|
||||
"pourcentage_completion": 0.0
|
||||
},
|
||||
"email": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_78123",
|
||||
"theme": "email",
|
||||
"nombre_total": 1,
|
||||
"nombre_avec_email": 0,
|
||||
"nombre_avec_contact:email": 0,
|
||||
"pourcentage_completion": 0.0
|
||||
},
|
||||
"bench": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_78123",
|
||||
"theme": "bench",
|
||||
"nombre_total": 26,
|
||||
"pourcentage_completion": 0
|
||||
},
|
||||
"waste_basket": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_78123",
|
||||
"theme": "waste_basket",
|
||||
"nombre_total": 12,
|
||||
"pourcentage_completion": 0
|
||||
},
|
||||
"street_lamp": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_78123",
|
||||
"theme": "street_lamp",
|
||||
"nombre_total": 1,
|
||||
"pourcentage_completion": 0
|
||||
},
|
||||
"drinking_water": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_78123",
|
||||
"theme": "drinking_water",
|
||||
"nombre_total": 1,
|
||||
"pourcentage_completion": 0
|
||||
},
|
||||
"power_pole": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_78123",
|
||||
"theme": "power_pole",
|
||||
"nombre_total": 0,
|
||||
"pourcentage_completion": 0
|
||||
},
|
||||
"manhole": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_78123",
|
||||
"theme": "manhole",
|
||||
"nombre_total": 0,
|
||||
"pourcentage_completion": 0
|
||||
},
|
||||
"little_free_library": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_78123",
|
||||
"theme": "little_free_library",
|
||||
"nombre_total": 2,
|
||||
"pourcentage_completion": 0
|
||||
},
|
||||
"playground": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_78123",
|
||||
"theme": "playground",
|
||||
"nombre_total": 12,
|
||||
"pourcentage_completion": 0
|
||||
},
|
||||
"siret": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_78123",
|
||||
"theme": "siret",
|
||||
"nombre_total": 6,
|
||||
"pourcentage_completion": 0
|
||||
},
|
||||
"restaurants": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_78123",
|
||||
"theme": "restaurants",
|
||||
"nombre_total": 4,
|
||||
"nombre_avec_opening_hours": 0,
|
||||
"nombre_avec_contact:street": 0,
|
||||
"nombre_avec_contact:housenumber": 0,
|
||||
"nombre_avec_website": 0,
|
||||
"nombre_avec_contact:phone": 0,
|
||||
"pourcentage_completion": 0.0
|
||||
},
|
||||
"rnb": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_78123",
|
||||
"theme": "rnb",
|
||||
"nombre_total": 0,
|
||||
"pourcentage_completion": 0
|
||||
}
|
||||
},
|
||||
"metadata": {
|
||||
"insee_code": "78123",
|
||||
"creation_date": "2025-08-21 11:15:23",
|
||||
"polygon_file": "commune_78123.poly",
|
||||
"osm_data_file": "france-latest.osm.pbf",
|
||||
"total_objects": 3161,
|
||||
"average_completion": 0.04740272065801961,
|
||||
"theme_count": 22
|
||||
}
|
||||
}
|
||||
|
|
@ -1,247 +0,0 @@
|
|||
{
|
||||
"themes": {
|
||||
"borne-de-recharge": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_94016",
|
||||
"theme": "borne-de-recharge",
|
||||
"nombre_total": 12,
|
||||
"nombre_avec_operator": 0,
|
||||
"nombre_avec_capacity": 0,
|
||||
"pourcentage_completion": 0
|
||||
},
|
||||
"borne-incendie": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_94016",
|
||||
"theme": "borne-incendie",
|
||||
"nombre_total": 46,
|
||||
"nombre_avec_ref": 12,
|
||||
"nombre_avec_colour": 7,
|
||||
"pourcentage_completion": 20.65
|
||||
},
|
||||
"arbres": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_94016",
|
||||
"theme": "arbres",
|
||||
"nombre_total": 2317,
|
||||
"nombre_avec_species": 18,
|
||||
"nombre_avec_leaf_type": 1648,
|
||||
"pourcentage_completion": 35.95
|
||||
},
|
||||
"defibrillator": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_94016",
|
||||
"theme": "defibrillator",
|
||||
"nombre_total": 13,
|
||||
"nombre_avec_operator": 0,
|
||||
"nombre_avec_access": 0,
|
||||
"pourcentage_completion": 0
|
||||
},
|
||||
"toilets": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_94016",
|
||||
"theme": "toilets",
|
||||
"nombre_total": 4,
|
||||
"nombre_avec_access": 4,
|
||||
"nombre_avec_wheelchair": 3,
|
||||
"pourcentage_completion": 87.5
|
||||
},
|
||||
"bus_stop": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_94016",
|
||||
"theme": "bus_stop",
|
||||
"nombre_total": 49,
|
||||
"nombre_avec_name": 0,
|
||||
"nombre_avec_shelter": 0,
|
||||
"pourcentage_completion": 0
|
||||
},
|
||||
"camera": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_94016",
|
||||
"theme": "camera",
|
||||
"nombre_total": 22,
|
||||
"nombre_avec_operator": 6,
|
||||
"nombre_avec_surveillance": 12,
|
||||
"pourcentage_completion": 40.91
|
||||
},
|
||||
"recycling": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_94016",
|
||||
"theme": "recycling",
|
||||
"nombre_total": 33,
|
||||
"nombre_avec_recycling_type": 0,
|
||||
"nombre_avec_operator": 6,
|
||||
"pourcentage_completion": 9.09
|
||||
},
|
||||
"substation": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_94016",
|
||||
"theme": "substation",
|
||||
"nombre_total": 59,
|
||||
"nombre_avec_operator": 6,
|
||||
"nombre_avec_voltage": 0,
|
||||
"pourcentage_completion": 5.08
|
||||
},
|
||||
"laboratory": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_94016",
|
||||
"theme": "laboratory",
|
||||
"nombre_total": 3,
|
||||
"nombre_avec_name": 0,
|
||||
"nombre_avec_operator": 6,
|
||||
"pourcentage_completion": 100.0
|
||||
},
|
||||
"school": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_94016",
|
||||
"theme": "school",
|
||||
"nombre_total": 17,
|
||||
"nombre_avec_name": 0,
|
||||
"nombre_avec_operator": 6,
|
||||
"pourcentage_completion": 17.65
|
||||
},
|
||||
"police": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_94016",
|
||||
"theme": "police",
|
||||
"nombre_total": 2,
|
||||
"nombre_avec_name": 0,
|
||||
"nombre_avec_operator": 6,
|
||||
"pourcentage_completion": 150.0
|
||||
},
|
||||
"healthcare": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_94016",
|
||||
"theme": "healthcare",
|
||||
"nombre_total": 77,
|
||||
"nombre_avec_name": 0,
|
||||
"nombre_avec_healthcare": 0,
|
||||
"pourcentage_completion": 0.0
|
||||
},
|
||||
"bicycle_parking": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_94016",
|
||||
"theme": "bicycle_parking",
|
||||
"nombre_total": 68,
|
||||
"nombre_avec_capacity": 0,
|
||||
"nombre_avec_covered": 0,
|
||||
"pourcentage_completion": 0.0
|
||||
},
|
||||
"advertising_board": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_94016",
|
||||
"theme": "advertising_board",
|
||||
"nombre_total": 37,
|
||||
"nombre_avec_operator": 6,
|
||||
"pourcentage_completion": 16.22
|
||||
},
|
||||
"building": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_94016",
|
||||
"theme": "building",
|
||||
"nombre_total": 4399,
|
||||
"nombre_avec_building": 0,
|
||||
"nombre_avec_addr:housenumber": 0,
|
||||
"pourcentage_completion": 0.0
|
||||
},
|
||||
"email": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_94016",
|
||||
"theme": "email",
|
||||
"nombre_total": 39,
|
||||
"nombre_avec_email": 0,
|
||||
"nombre_avec_contact:email": 0,
|
||||
"pourcentage_completion": 0.0
|
||||
},
|
||||
"bench": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_94016",
|
||||
"theme": "bench",
|
||||
"nombre_total": 439,
|
||||
"pourcentage_completion": 0
|
||||
},
|
||||
"waste_basket": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_94016",
|
||||
"theme": "waste_basket",
|
||||
"nombre_total": 260,
|
||||
"pourcentage_completion": 0
|
||||
},
|
||||
"street_lamp": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_94016",
|
||||
"theme": "street_lamp",
|
||||
"nombre_total": 1622,
|
||||
"pourcentage_completion": 0
|
||||
},
|
||||
"drinking_water": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_94016",
|
||||
"theme": "drinking_water",
|
||||
"nombre_total": 9,
|
||||
"pourcentage_completion": 0
|
||||
},
|
||||
"power_pole": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_94016",
|
||||
"theme": "power_pole",
|
||||
"nombre_total": 0,
|
||||
"pourcentage_completion": 0
|
||||
},
|
||||
"manhole": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_94016",
|
||||
"theme": "manhole",
|
||||
"nombre_total": 21,
|
||||
"pourcentage_completion": 0
|
||||
},
|
||||
"little_free_library": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_94016",
|
||||
"theme": "little_free_library",
|
||||
"nombre_total": 6,
|
||||
"pourcentage_completion": 0
|
||||
},
|
||||
"playground": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_94016",
|
||||
"theme": "playground",
|
||||
"nombre_total": 23,
|
||||
"pourcentage_completion": 0
|
||||
},
|
||||
"siret": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_94016",
|
||||
"theme": "siret",
|
||||
"nombre_total": 260,
|
||||
"pourcentage_completion": 0
|
||||
},
|
||||
"restaurants": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_94016",
|
||||
"theme": "restaurants",
|
||||
"nombre_total": 40,
|
||||
"nombre_avec_opening_hours": 0,
|
||||
"nombre_avec_contact:street": 0,
|
||||
"nombre_avec_contact:housenumber": 0,
|
||||
"nombre_avec_website": 0,
|
||||
"nombre_avec_contact:phone": 0,
|
||||
"pourcentage_completion": 0.0
|
||||
},
|
||||
"rnb": {
|
||||
"date": "2025-08-21",
|
||||
"zone": "commune_94016",
|
||||
"theme": "rnb",
|
||||
"nombre_total": 0,
|
||||
"pourcentage_completion": 0
|
||||
}
|
||||
},
|
||||
"metadata": {
|
||||
"insee_code": "94016",
|
||||
"creation_date": "2025-08-21 11:16:39",
|
||||
"polygon_file": "commune_94016.poly",
|
||||
"osm_data_file": "france-latest.osm.pbf",
|
||||
"total_objects": 9877,
|
||||
"average_completion": 8.868679761061053,
|
||||
"theme_count": 26
|
||||
}
|
||||
}
|
||||
|
|
@ -238,9 +238,19 @@ def export_to_geojson(
|
|||
# Ajouter le code INSEE au nom du fichier si disponible
|
||||
insee_suffix = f"_insee_{insee_code}" if insee_code else ""
|
||||
|
||||
# Slug pour identifier la thématique/filtre principal dans le nom du fichier
|
||||
theme_slug = (
|
||||
main_tag_filter.replace("=", "_")
|
||||
.replace(" ", "_")
|
||||
.replace(":", "_")
|
||||
.replace("|", "_")
|
||||
.replace("&", "_")
|
||||
)
|
||||
|
||||
# Définir le chemin du fichier GeoJSON de sortie
|
||||
geojson_file = os.path.join(
|
||||
output_dir, f"export_{date_str.replace(':', '_')}__{insee_suffix}.geojson"
|
||||
output_dir,
|
||||
f"export_{date_str.replace(':', '_')}__{theme_slug}__{insee_suffix}.geojson",
|
||||
)
|
||||
|
||||
# Vérifier si le fichier GeoJSON existe déjà
|
||||
|
|
@ -270,8 +280,18 @@ def export_to_geojson(
|
|||
filter_cmd = f"osmium tags-filter {temp_file} {main_tag_filter} -f osm.pbf -O -o {filtered_file}"
|
||||
run_command_cached(filter_cmd)
|
||||
|
||||
# Exporter vers GeoJSON
|
||||
export_cmd = f"osmium export {filtered_file} -O -o {geojson_file} -f geojson --geometry-types point,linestring,polygon"
|
||||
# Exporter vers GeoJSON en utilisant un fichier de configuration osmium
|
||||
# (permet d'activer l'export des IDs OSM même si l'option --add-ids n'existe pas)
|
||||
config_path = os.path.join(os.path.dirname(__file__), "osmium_export_config.json")
|
||||
if os.path.exists(config_path):
|
||||
export_cmd = (
|
||||
f"osmium export -c {config_path} {filtered_file} -O -o {geojson_file}"
|
||||
)
|
||||
else:
|
||||
# Fallback simple sans config si le fichier n'existe pas
|
||||
export_cmd = (
|
||||
f"osmium export {filtered_file} -O -o {geojson_file} -f geojson"
|
||||
)
|
||||
run_command_cached(export_cmd)
|
||||
|
||||
return geojson_file
|
||||
|
|
|
|||
19
counting_osm_objects/osmium_export_config.json
Normal file
19
counting_osm_objects/osmium_export_config.json
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
"output": {
|
||||
"format": "geojson"
|
||||
},
|
||||
"attributes": {
|
||||
"type": true,
|
||||
"id": true,
|
||||
"version": false,
|
||||
"timestamp": true,
|
||||
"changeset": true,
|
||||
"uid": true,
|
||||
"user": true
|
||||
},
|
||||
"tags": {
|
||||
"all": true
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue