Compare commits

..

No commits in common. "e1688352d15138d9bb55c99c13f05fa14dfe3e2d" and "671e994609909cf624b80d9547cb1e9f09dca511" have entirely different histories.

8 changed files with 10 additions and 129016 deletions

View File

@ -23,11 +23,10 @@ const allowed_configs = [
'mappingIssy2Roues', 'mappingConfigIRVE', 'mappingConfigIRVEFromOsmose',
'mappingConfigIRVE_simple', 'mappingTest', 'ConfigIRVE',
'mappingRouenParkingVelos', 'mappingFINESS', 'MappingArbresIssy',
'MappingArbres92', 'MappingMuseums','MappingRouenPAV'
'MappingArbres92', 'MappingMuseums'
];
import minimist = require('minimist')
import MappingRouenPAV from "./mappings/converters/configRouen_PAV";
const debugLog = utils.debugLog;
@ -395,8 +394,6 @@ function setMappingConfigFromName(engine_conf_choice: string) {
Mapping_engine.setConfig(MappingArbres92)
} else if (engine_conf_choice == 'MappingMuseums') {
Mapping_engine.setConfig(MappingMuseums)
}else if (engine_conf_choice == 'MappingRouenPAV') {
Mapping_engine.setConfig(MappingRouenPAV)
}
} else {
Mapping_engine.setConfig(mappingConfigIRVE)

View File

@ -1,8 +0,0 @@
# Recyclage - PAV - points d'apport volontaire
Les boites de tri de déchets public ont leur configuration de conversion.
# Conversion
## Conversion pour les données de Rouen
```bash
ts-node convert_to_osm_tags.ts --source=etalab_data/recycling/rouen_pav.json --output-file=rouen_pav.geojson --engine-config=MappingRouenPAV
```

File diff suppressed because one or more lines are too long

View File

@ -21,7 +21,7 @@ const MappingArbres92: MappingConfigType = {
"diametre": "circumference",// tour du tronc à hauteur de poitrine
// "diametre": {// tour du tronc à hauteur de poitrine
// key_converted: "circumference",
// conditional_values: {
// conditionnal_values: {
// "0 m": {
// ignore_this_data: true,
// }
@ -30,7 +30,7 @@ const MappingArbres92: MappingConfigType = {
"circonference": "diameter_crown",// tour de toutes les branches, la couronne
// "circonference": {// tour de toutes les branches, la couronne
// key_converted: "diameter_crown",
// conditional_values: {
// conditionnal_values: {
// "0 m": {
// ignore_this_data: true,
// }

View File

@ -15,6 +15,10 @@ const MappingMuseums: MappingConfigType = {
key_converted: "contact:phone",
convert_to_phone: true,
},
"Nom officiel du musée": {
key_converted: "name",
convert_to_name: true,
}
},
add_not_mapped_tags_too: false,
source: {

View File

@ -30,7 +30,7 @@ const mappingRouenParkingVelos: MappingConfigType = {
capacite_cargo: 'capacity:cargo_bike',
gestionnaire: {
key_converted: 'operator',
conditional_values: {
conditionnal_values: {
"Non renseigne": {
ignore_this_data: true, // ne pas ajouter de tag si la valeur est égale à
}
@ -38,7 +38,7 @@ const mappingRouenParkingVelos: MappingConfigType = {
},
proprietaire: {
key_converted: 'owner',
conditional_values: {
conditionnal_values: {
"Non renseigne": {
ignore_this_data: true, // ne pas ajouter de tag si la valeur est égale à
}

View File

@ -1,59 +0,0 @@
/**
* points d'apport volontaire de Rouen
*/
import MappingConfigType from "../mapping-config.type";
const MappingRouenPAV: MappingConfigType = {
config_name: "mappingRouenParkingVelos",
config_author: "tykayn <contact@cipherbliss.com>",
default_properties_of_point: {
'amenity': 'recycling',
'recycling_type': 'container',
},
source: {
geojson_path: 'https://data.metropole-rouen-normandie.fr/api/explore/v2.1/catalog/datasets/donmetdec_pav/exports/geojson?lang=fr&timezone=Europe%2FBerlin',
url: 'https://data.metropole-rouen-normandie.fr/explore/dataset/donmetdec_pav/information/'
},
filters: {
// exclude_point_if_tag_not_empty: ['id_osm'], // on peut exclure des données converties celles qui sont déjà avec un identifiant openstreetmap afin de favoriser l'intégration san avoir à gérer les doublons
// offset: 50
},
add_not_mapped_tags_too: false,
boolean_keys: [
// "acces_reglement",
],
tags_to_ignore_if_value_is: ['Non renseigne'],
tags: {
// ******* nombres
pavtyp: {
remove_original_key:true,
conditional_values: {
"Emballages en verre": {
tags_to_add: {
'recycling:glass': 'yes'
}
},
"Emballages recyclables": {
tags_to_add: {
'recycling:pmd': 'yes' // https://wiki.openstreetmap.org/wiki/Key:recycling:pmd
}
},
"Ordures ménagères": {
tags_to_add: {
'amenity': 'waste_disposal'
}
}
}
},
date_maj: 'check_date',
// ******* textes
gml_id: 'ref:FR:Rouen:pav:gml_id',
objectid_1: 'ref:FR:Rouen:pav:object',
pavid: 'ref:FR:Rouen:pav:id',
pavnom: 'ref:FR:Rouen:pav:name',
commune: 'ref:FR:Rouen:commune',
}
}
export default MappingRouenPAV;

File diff suppressed because it is too large Load Diff