mirror of
https://forge.chapril.org/tykayn/wololo
synced 2025-10-09 17:02:46 +02:00
add config plaques commémoratives
This commit is contained in:
parent
2956a3ffee
commit
c9ecd31302
14 changed files with 536 additions and 166 deletions
|
@ -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",
|
||||
|
|
86
mappings/converters/configPlaquesCommémorativesParis.ts
Normal file
86
mappings/converters/configPlaquesCommémorativesParis.ts
Normal 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;
|
Loading…
Add table
Add a link
Reference in a new issue