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

View File

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

File diff suppressed because it is too large Load Diff