mirror of
https://forge.chapril.org/tykayn/wololo
synced 2025-10-09 17:02:46 +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
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