add config plaques commémoratives

This commit is contained in:
Tykayn 2025-04-17 17:34:39 +02:00 committed by tykayn
parent 2956a3ffee
commit c9ecd31302
14 changed files with 536 additions and 166 deletions

View file

@ -24,7 +24,7 @@ const MappingIRVE: MappingConfigType = {
enable_properties_filter: true,
// filter_points_older_than_year: 2024,
// filter_points_by_year_property: 'date_mise_en_service',
// filter_points_lesser_than_NkW: 50 // ne pas sortir les points qui ont moins de ce nombre de puissance nominale
// filter_points_lesser_than_NkW: 50 // ne pas sortir les points qui ont moins de ce nombre de puissance nominale
// add only geojson points who are found having this regex in the zipcode properties
// properties: {
// consolidated_code_postal: '^[76|27]'
@ -36,7 +36,10 @@ const MappingIRVE: MappingConfigType = {
add_not_mapped_tags_too: false,
boolean_keys: [
"prise_type_ef",
"prise_type_e",
"prise_type2",
"prise_type_2",
"prise_type_3",
"prise_type_combo_ccs",
"prise_type_chademo",
"gratuit",

View file

@ -0,0 +1,86 @@
/**
* Plaques commémoratives de Paris
*
* npx ts-node convert_to_osm_tags.ts --engine-config=MappingPlaquesCommémorativesParis --source=./etalab_data/plaques_commémoratives/plaques_commemoratives.geojson
*/
import MappingConfigType from "../mapping-config.type";
const MappingPlaquesCommémorativesParis: MappingConfigType = {
config_name: "MappingPlaquesCommémorativesParis",
config_author: "tykayn",
default_properties_of_point: {
// Ajoutez ici les propriétés par défaut pour vos points
"memorial": "plaque",
"historic": "memorial",
},
source: {
geojson_path: '',
url: ''
},
filters: {
// exclude_point_if_tag_not_empty: ['id_osm'], // exclure les points ayant déjà un id_osm pour éviter les doublons
// offset: 10
},
add_not_mapped_tags_too: false,
boolean_keys: [],
tags_to_ignore_if_value_is: ['Non renseigne', 'null'],
tags: {
"index_plaque": "ref:FR:Paris:plaques",
// "retranscription": "inscription",
"materiau": {
key_converted: "material",
// remove_original_key: true,
conditional_values: {
"pierre": {
value_converted: "stone"
},
"pierre blanche": {
value_converted: "stone"
},
"pierre beige": {
value_converted: "stone"
},
"marbre": {
value_converted: "marbre"
},
"marbre fonc\u00e9": {
value_converted: "marbre"
},
"marbre clair": {
value_converted: "marbre"
},
"cuivre": {
value_converted: "copper"
},
"métal": {
value_converted: "metal"
},
"plexiglas transparent": {
value_converted: "glass"
},
"plexiglas opaque": {
value_converted: "glass"
},
"bois": {
value_converted: "wood"
},
"verre": {
value_converted: "glass"
},
"céramique": {
value_converted: "ceramic"
},
}
},
// "titre": "name",
// "personnalite": "subject",
// -----------------------------------------
}
}
export default MappingPlaquesCommémorativesParis;