mapping-geojson-osm/mappings/converters/configArbresIssy.ts

99 lines
3.3 KiB
TypeScript
Raw Normal View History

import MappingConfigType from "../mapping-config.type";
const MappingArbresIssy: MappingConfigType = {
config_name: 'Mapping des arbres d\'Issy les Moulineaux',
config_author: 'tykayn <contact+geojson2osm@cipherbliss.com>',
default_properties_of_point: {natural: 'tree'},
tags: {
// ******* booléens
// ******* nombres
// - ID_ARBRE : ref:FR:issy_les_mx:id_arbre identifiant interne à Issy les Moulineaux
"id_arbre": "ref:FR:issy_les_mx:id_arbre",
"ordre": "ref:FR:issy_les_mx:ordre_arbre",
// - AN_PLANT : date de plantation
"an_plan": "date_start",
// ******* textes
// - HAUTEUR est_height=* hauteur estimée en intervalle de mètres
2024-10-14 16:19:38 +02:00
"class_hauteur": "est_height",
// - VERNACULAIRE : species:FR=*
"vernaculaire": "species:FR",
// - GENESPVAR : nom d'espèce species=*
"genespvar": "species",
// - CADUC_PERS : leaf_cycle=evergreen pour persistant , deciduous pour caduque
"caduc_pers": {
2024-10-14 16:19:38 +02:00
// key_converted: "leaf_cycle",
conditional_values: {
2024-10-14 16:19:38 +02:00
"Persistant ": {
'tags_to_add':{
"leaf_cycle": "evergreen",
}
},
2024-10-14 16:19:38 +02:00
"Caduc ": {
'tags_to_add':{
"leaf_cycle": "deciduous",
}
},
}
2024-10-14 16:19:38 +02:00
},
// - FEUIL_CONI : feuillu leaf_type=broadleaved / connifère leaf_type=needleleaved
"feuil_coni": {
2024-10-14 16:19:38 +02:00
// key_converted: "leaf_type",
conditional_values: {
2024-10-14 16:19:38 +02:00
"Feuillu ": {
'tags_to_add':{
"leaf_type": "broadleaved",
}
},
2024-10-14 16:19:38 +02:00
"Conifère ": {
'tags_to_add':{
"leaf_type": "needleleaved",
}
},
}
},
// - PARTICULAR : Majeur, Remarquable : historic=monument
"particular": {
2024-10-14 16:19:38 +02:00
// key_converted: "historic",
conditional_values: {
2024-10-14 16:19:38 +02:00
"Majeur ": {
'tags_to_add':{
"historic": "monument",
},
},
2024-10-14 16:19:38 +02:00
"Remarquable ": {
'tags_to_add':{
"historic": "monument",
},
},
}
},
// - FORME: tree_shape = curtain / free / half_free <= Architecturé, rideau / Libre / Semi-libre
"forme": {
key_converted: "tree_shape",
conditional_values: {
2024-10-14 16:19:38 +02:00
"Architecturé, rideau ": {
value_converted: "curtain"
},
2024-10-14 16:19:38 +02:00
"Semi-libre ": {
value_converted: "half_free"
},
2024-10-14 16:19:38 +02:00
"Libre ": {
value_converted: "free"
},
}
},
},
add_not_mapped_tags_too: false,
source: {
geojson_path: 'https://data.issy.com/api/explore/v2.1/catalog/datasets/arbres-remarquables-issy-les-moulineaux/exports/geojson?lang=fr&timezone=Europe%2FBerlin',
url: 'https://www.data.gouv.fr/fr/datasets/arbres-remarquables'
},
filters: {},
}
export default MappingArbresIssy