mirror of
https://forge.chapril.org/tykayn/wololo
synced 2025-06-20 01:34:42 +02:00
add config maxspeed and Echirolles, up script get datasets, start conflation of geojsons
This commit is contained in:
parent
9b5baab032
commit
aa35803a0b
5 changed files with 518 additions and 82 deletions
|
@ -17,7 +17,10 @@ const MappingArbresEchirolles: MappingConfigType = {
|
|||
// source: undefined,
|
||||
config_name: 'Mapping des arbres d\'Echirolles',
|
||||
config_author: 'tykayn <contact+geojson2osm@cipherbliss.com>',
|
||||
default_properties_of_point: {natural: 'tree', source : 'Échirolles Métropole'},
|
||||
default_properties_of_point: {
|
||||
natural: 'tree',
|
||||
source: 'Échirolles Métropole'
|
||||
},
|
||||
tags: {
|
||||
// ******* booléens
|
||||
// ******* nombres
|
||||
|
@ -27,27 +30,27 @@ const MappingArbresEchirolles: MappingConfigType = {
|
|||
"nom_latin": {
|
||||
key_converted: "species",
|
||||
conditional_values: {
|
||||
"Platanus acerifolia": {'tags_to_add': {"species:wikidata": "Q24853030"}},
|
||||
"Tilia cordata": {'tags_to_add': {"wikidata": "species:Q158746"}},
|
||||
"Liriodendron tulipifera": {'tags_to_add': {"species:wikidata": "Q158783"}},
|
||||
"Platanus acerifolia": { 'tags_to_add': { "species:wikidata": "Q24853030" } },
|
||||
"Tilia cordata": { 'tags_to_add': { "wikidata": "species:Q158746" } },
|
||||
"Liriodendron tulipifera": { 'tags_to_add': { "species:wikidata": "Q158783" } },
|
||||
},
|
||||
},
|
||||
|
||||
// - CADUC_PERS : leaf_cycle=evergreen pour persistant , deciduous pour caduque
|
||||
// "caduc_pers": {
|
||||
// conditional_values: {
|
||||
// "Persistant ": {
|
||||
// 'tags_to_add':{
|
||||
// "leaf_cycle": "evergreen",
|
||||
// }
|
||||
// },
|
||||
// "Caduc ": {
|
||||
// 'tags_to_add':{
|
||||
// "leaf_cycle": "deciduous",
|
||||
// }
|
||||
// },
|
||||
// }
|
||||
// },
|
||||
// - CADUC_PERS : leaf_cycle=evergreen pour persistant , deciduous pour caduque
|
||||
// "caduc_pers": {
|
||||
// conditional_values: {
|
||||
// "Persistant ": {
|
||||
// 'tags_to_add':{
|
||||
// "leaf_cycle": "evergreen",
|
||||
// }
|
||||
// },
|
||||
// "Caduc ": {
|
||||
// 'tags_to_add':{
|
||||
// "leaf_cycle": "deciduous",
|
||||
// }
|
||||
// },
|
||||
// }
|
||||
// },
|
||||
// - FEUIL_CONI : feuillu leaf_type=broadleaved / connifère leaf_type=needleleaved
|
||||
// "feuil_coni": {
|
||||
// conditional_values: {
|
||||
|
@ -63,7 +66,7 @@ const MappingArbresEchirolles: MappingConfigType = {
|
|||
// },
|
||||
// }
|
||||
// },
|
||||
// - PARTICULAR : Majeur, Remarquable : historic=monument
|
||||
// - PARTICULAR : Majeur, Remarquable : historic=monument
|
||||
|
||||
// "particular": {
|
||||
// conditional_values: {
|
||||
|
@ -80,27 +83,27 @@ const MappingArbresEchirolles: MappingConfigType = {
|
|||
// },
|
||||
// }
|
||||
// },
|
||||
// - FORME: tree_shape = curtain / free / half_free <= Architecturé, rideau / Libre / Semi-libre
|
||||
// "forme": {
|
||||
// key_converted: "tree_shape",
|
||||
// conditional_values: {
|
||||
// "Architecturé, rideau ": {
|
||||
// 'tags_to_add':{
|
||||
// "tree_shape": "curtain",
|
||||
// },
|
||||
// },
|
||||
// "Semi-libre ": {
|
||||
// 'tags_to_add':{
|
||||
// "tree_shape": "half_free",
|
||||
// },
|
||||
// },
|
||||
// "Libre ": {
|
||||
// 'tags_to_add':{
|
||||
// "tree_shape": "free",
|
||||
// },
|
||||
// },
|
||||
// }
|
||||
// },
|
||||
// - FORME: tree_shape = curtain / free / half_free <= Architecturé, rideau / Libre / Semi-libre
|
||||
// "forme": {
|
||||
// key_converted: "tree_shape",
|
||||
// conditional_values: {
|
||||
// "Architecturé, rideau ": {
|
||||
// 'tags_to_add':{
|
||||
// "tree_shape": "curtain",
|
||||
// },
|
||||
// },
|
||||
// "Semi-libre ": {
|
||||
// 'tags_to_add':{
|
||||
// "tree_shape": "half_free",
|
||||
// },
|
||||
// },
|
||||
// "Libre ": {
|
||||
// 'tags_to_add':{
|
||||
// "tree_shape": "free",
|
||||
// },
|
||||
// },
|
||||
// }
|
||||
// },
|
||||
|
||||
|
||||
},
|
||||
|
|
40
mappings/converters/configPanneauxMaxSpeed.ts
Normal file
40
mappings/converters/configPanneauxMaxSpeed.ts
Normal file
|
@ -0,0 +1,40 @@
|
|||
/**
|
||||
* panneaux de vitesse détectés sur panoramax
|
||||
* utilisation:
|
||||
*/
|
||||
import { constrainedMemory } from "process";
|
||||
import MappingConfigType from "../mapping-config.type";
|
||||
|
||||
const MappingPanneauxMaxSpeed: MappingConfigType = {
|
||||
config_name: "MappingPanneauxMaxSpeed",
|
||||
config_author: "tk",
|
||||
default_properties_of_point: {
|
||||
"traffic_sign": "FR:B14",
|
||||
"maxspeed:source": "panoramax"
|
||||
},
|
||||
source: {
|
||||
geojson_path: '',
|
||||
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: {
|
||||
"SourceFile": {
|
||||
key_converted: 'maxspeed',
|
||||
transform_function: (value: string) => {
|
||||
let explode = value.split('-');
|
||||
if (explode.length > 1) {
|
||||
return explode[1];
|
||||
}
|
||||
return value;
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
export default MappingPanneauxMaxSpeed;
|
Loading…
Add table
Add a link
Reference in a new issue