mirror of
https://forge.chapril.org/tykayn/wololo
synced 2025-06-20 01:34:42 +02:00
update propose mapping from open data for Rouen métropole trees
This commit is contained in:
parent
f309db257d
commit
d7c622bf71
6 changed files with 276 additions and 33 deletions
74
mappings/converters/configArbresRemarquablesRouen.ts
Normal file
74
mappings/converters/configArbresRemarquablesRouen.ts
Normal file
|
@ -0,0 +1,74 @@
|
|||
/**
|
||||
* arbres monumentaux de Rouen
|
||||
*/
|
||||
import MappingConfigType from "../mapping-config.type";
|
||||
|
||||
const MappingArbresRemarquablesRouen: MappingConfigType = {
|
||||
config_name: "MappingArbresRemarquablesRouen",
|
||||
config_author: "tykayn contact@cipherbliss.com",
|
||||
default_properties_of_point: {
|
||||
natural: 'tree',
|
||||
source: 'Métropole de Rouen',
|
||||
historic: 'monument'
|
||||
},
|
||||
source: {
|
||||
geojson_path: 'https://data.metropole-rouen-normandie.fr/api/explore/v2.1/catalog/datasets/arbres-remarquables-metropole-rouen-normandie-2019/exports/geojson?lang=fr&timezone=Europe%2FBerlin',
|
||||
url: ''
|
||||
},
|
||||
filters: {
|
||||
// exclude_point_if_tag_not_empty: ['id_osm'], // exclure les points ayant déjà un id_osm pour éviter les doublons
|
||||
// offset: 1
|
||||
},
|
||||
add_not_mapped_tags_too: false,
|
||||
boolean_keys: [],
|
||||
tags_to_ignore_if_value_is: ['Non renseigne'],
|
||||
tags: {
|
||||
// Mapping des champs du fichier source vers les tags OSM
|
||||
// 'champ_source': 'tag_osm_cible',
|
||||
// 'champ_source_id': 'ref:FR:votre_id',
|
||||
|
||||
// Exemple de transformation plus complexe
|
||||
// nom: {
|
||||
// key_converted: 'name',
|
||||
// convert_to_name: true,
|
||||
// },
|
||||
|
||||
// "geo_point_2d": "",
|
||||
"gml_id": {
|
||||
key_converted: 'ref:FR:rouen:gml_id',
|
||||
convert_to_name: true,
|
||||
},
|
||||
// "objectid": "",
|
||||
"nom": "name",
|
||||
// "foret": "",
|
||||
// "variete": "",
|
||||
// "diametre_pied": "",
|
||||
// "hauteur": "",
|
||||
// "age": "",
|
||||
// "parcelle": "",
|
||||
// "photo": "",
|
||||
// "pdf": "",
|
||||
// "gps": "",
|
||||
// "x": "",
|
||||
// "y": "",
|
||||
|
||||
"description": "description",
|
||||
"essence_forestiere": {
|
||||
conditional_values: {
|
||||
"Feuillu ": {
|
||||
'tags_to_add': {
|
||||
"leaf_type": "broadleaved",
|
||||
}
|
||||
},
|
||||
"Résineux": {
|
||||
'tags_to_add': {
|
||||
"leaf_type": "needleleaved",
|
||||
}
|
||||
},
|
||||
}
|
||||
},
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
export default MappingArbresRemarquablesRouen;
|
Loading…
Add table
Add a link
Reference in a new issue