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

104 lines
3.4 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": {
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": {
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": {
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 ": {
2024-10-14 16:21:39 +02:00
'tags_to_add':{
"tree_shape": "curtain",
},
},
2024-10-14 16:19:38 +02:00
"Semi-libre ": {
2024-10-14 16:21:39 +02:00
'tags_to_add':{
"tree_shape": "half_free",
},
},
2024-10-14 16:19:38 +02:00
"Libre ": {
2024-10-14 16:21:39 +02:00
'tags_to_add':{
"tree_shape": "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'
},
2024-10-15 17:55:37 +02:00
filters: {
offset:10
},
}
export default MappingArbresIssy