2025-04-17 17:34:39 +02:00
|
|
|
/**
|
|
|
|
* 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'],
|
2025-04-17 17:57:29 +02:00
|
|
|
// allow_unspecified_conditional_values: false,
|
2025-04-17 17:34:39 +02:00
|
|
|
tags: {
|
|
|
|
|
|
|
|
"index_plaque": "ref:FR:Paris:plaques",
|
2025-04-17 17:57:29 +02:00
|
|
|
"retranscription": "inscription",
|
2025-04-17 17:34:39 +02:00
|
|
|
"materiau": {
|
|
|
|
key_converted: "material",
|
|
|
|
// remove_original_key: true,
|
|
|
|
conditional_values: {
|
2025-04-17 17:57:29 +02:00
|
|
|
"comblanchien": {
|
|
|
|
value_converted: "stone",
|
|
|
|
tags_to_add: [{ "color": "white" }]
|
|
|
|
},
|
|
|
|
"bronze": {
|
|
|
|
value_converted: "metal",
|
|
|
|
// tags_to_add: [{ "color": "orange" }]
|
|
|
|
},
|
|
|
|
"Méthacrylate": {
|
|
|
|
value_converted: "plastic"
|
|
|
|
},
|
|
|
|
|
|
|
|
"granit": {
|
|
|
|
value_converted: "stone"
|
|
|
|
},
|
2025-04-17 17:34:39 +02:00
|
|
|
"pierre": {
|
|
|
|
value_converted: "stone"
|
|
|
|
},
|
2025-04-17 17:57:29 +02:00
|
|
|
"Pierre": {
|
|
|
|
value_converted: "stone"
|
|
|
|
},
|
2025-04-17 17:34:39 +02:00
|
|
|
"pierre blanche": {
|
|
|
|
value_converted: "stone"
|
|
|
|
},
|
|
|
|
"pierre beige": {
|
|
|
|
value_converted: "stone"
|
|
|
|
},
|
|
|
|
"marbre": {
|
|
|
|
value_converted: "marbre"
|
|
|
|
},
|
|
|
|
"marbre fonc\u00e9": {
|
|
|
|
value_converted: "marbre"
|
|
|
|
},
|
2025-04-17 17:57:29 +02:00
|
|
|
|
|
|
|
"marbre gris": {
|
|
|
|
value_converted: "marbre",
|
|
|
|
tags_to_add: [{ "color": "grey" }]
|
|
|
|
},
|
2025-04-17 17:34:39 +02:00
|
|
|
"marbre clair": {
|
2025-04-17 17:57:29 +02:00
|
|
|
value_converted: "marbre",
|
|
|
|
tags_to_add: [{ "color": "white" }]
|
|
|
|
},
|
|
|
|
"marbre rose": {
|
|
|
|
value_converted: "marbre",
|
|
|
|
tags_to_add: [{ "color": "pink" }]
|
2025-04-17 17:34:39 +02:00
|
|
|
},
|
|
|
|
"cuivre": {
|
|
|
|
value_converted: "copper"
|
|
|
|
},
|
|
|
|
"métal": {
|
|
|
|
value_converted: "metal"
|
|
|
|
},
|
2025-04-17 17:57:29 +02:00
|
|
|
"fonte": {
|
|
|
|
value_converted: "metal"
|
|
|
|
},
|
2025-04-17 17:34:39 +02:00
|
|
|
"plexiglas transparent": {
|
|
|
|
value_converted: "glass"
|
|
|
|
},
|
|
|
|
"plexiglas opaque": {
|
|
|
|
value_converted: "glass"
|
|
|
|
},
|
|
|
|
"bois": {
|
|
|
|
value_converted: "wood"
|
|
|
|
},
|
|
|
|
"verre": {
|
|
|
|
value_converted: "glass"
|
|
|
|
},
|
|
|
|
"céramique": {
|
|
|
|
value_converted: "ceramic"
|
|
|
|
},
|
2025-04-17 17:57:29 +02:00
|
|
|
"résine": {
|
|
|
|
value_converted: "resin"
|
|
|
|
},
|
|
|
|
"acier": {
|
|
|
|
value_converted: "steel"
|
|
|
|
},
|
|
|
|
"Marbre": {
|
|
|
|
value_converted: "marbre"
|
|
|
|
},
|
|
|
|
|
2025-04-17 17:34:39 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
},
|
2025-04-17 17:57:29 +02:00
|
|
|
"titre": "name",
|
2025-04-17 17:34:39 +02:00
|
|
|
// "personnalite": "subject",
|
|
|
|
// -----------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default MappingPlaquesCommémorativesParis;
|