up arbres issy
This commit is contained in:
parent
69c3e2ebc9
commit
4893fd2100
File diff suppressed because one or more lines are too long
@ -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"
|
||||
'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"
|
||||
'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"
|
||||
'tags_to_add':{
|
||||
"historic": "monument",
|
||||
},
|
||||
},
|
||||
"Remarquable ": {
|
||||
value_converted: "monument"
|
||||
|
||||
'tags_to_add':{
|
||||
"historic": "monument",
|
||||
},
|
||||
},
|
||||
}
|
||||
},
|
||||
@ -74,9 +87,6 @@ const MappingArbresIssy: MappingConfigType = {
|
||||
},
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
},
|
||||
add_not_mapped_tags_too: false,
|
||||
source: {
|
||||
|
@ -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
Loading…
Reference in New Issue
Block a user