up arbres issy

This commit is contained in:
Tykayn 2024-10-14 16:19:38 +02:00 committed by tykayn
parent 69c3e2ebc9
commit 4893fd2100
4 changed files with 177475 additions and 38753 deletions

File diff suppressed because one or more lines are too long

View File

@ -15,45 +15,58 @@ const MappingArbresIssy: MappingConfigType = {
// ******* textes
// - HAUTEUR est_height=* hauteur estimée en intervalle de mètres
"hauteur": "est_height",
"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": {
key_converted: "leaf_cycle",
// key_converted: "leaf_cycle",
conditional_values: {
"Persistant": {
value_converted: "evergreen"
"Persistant ": {
'tags_to_add':{
"leaf_cycle": "evergreen",
}
},
"Caduque": {
value_converted: "deciduous"
"Caduc ": {
'tags_to_add':{
"leaf_cycle": "deciduous",
}
},
}
} ,
},
// - FEUIL_CONI : feuillu leaf_type=broadleaved / connifère leaf_type=needleleaved
"feuil_coni": {
key_converted: "leaf_type",
// key_converted: "leaf_type",
conditional_values: {
"Feuillu": {
value_converted: "broadleaved"
"Feuillu ": {
'tags_to_add':{
"leaf_type": "broadleaved",
}
},
"Connifère": {
value_converted: "needleleaved"
"Conifère ": {
'tags_to_add':{
"leaf_type": "needleleaved",
}
},
}
},
// - PARTICULAR : Majeur, Remarquable : historic=monument
"particular": {
key_converted: "historic",
// key_converted: "historic",
conditional_values: {
"Majeur": {
value_converted: "monument"
"Majeur ": {
'tags_to_add':{
"historic": "monument",
},
},
"Remarquable": {
value_converted: "monument"
"Remarquable ": {
'tags_to_add':{
"historic": "monument",
},
},
}
},
@ -61,22 +74,19 @@ const MappingArbresIssy: MappingConfigType = {
"forme": {
key_converted: "tree_shape",
conditional_values: {
"Architecturé, rideau": {
"Architecturé, rideau ": {
value_converted: "curtain"
},
"Semi-libre": {
"Semi-libre ": {
value_converted: "half_free"
},
"Libre": {
"Libre ": {
value_converted: "free"
},
}
},
},
add_not_mapped_tags_too: false,
source: {

View File

@ -194,6 +194,7 @@ export default class {
let originalValue = ''
if (this.mapping_config.osmose) {
originalValue = featurePoint.properties.fixes[0][0].create[pointKeyName]
} else {
@ -455,6 +456,8 @@ export default class {
*/
if (configObject.conditional_values) {
// convert numbers from json to string to compare them correctly
originalValue = ''+originalValue
@ -469,6 +472,7 @@ export default class {
debugLog('-----++++++++ originalValue', originalValue)
debugLog('----------- isFoundValue', isFoundValue)
if (!remove_original_key) {

File diff suppressed because it is too large Load Diff