mapping PAV Rouen fait

This commit is contained in:
Tykayn 2024-10-17 09:47:09 +02:00 committed by tykayn
parent 4248f59d0c
commit e1688352d1
4 changed files with 59429 additions and 13 deletions

View File

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

View File

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

View File

@ -7,7 +7,8 @@ const MappingRouenPAV: MappingConfigType = {
config_name: "mappingRouenParkingVelos", config_name: "mappingRouenParkingVelos",
config_author: "tykayn <contact@cipherbliss.com>", config_author: "tykayn <contact@cipherbliss.com>",
default_properties_of_point: { default_properties_of_point: {
'amenity': 'recycling' 'amenity': 'recycling',
'recycling_type': 'container',
}, },
source: { source: {
geojson_path: 'https://data.metropole-rouen-normandie.fr/api/explore/v2.1/catalog/datasets/donmetdec_pav/exports/geojson?lang=fr&timezone=Europe%2FBerlin', geojson_path: 'https://data.metropole-rouen-normandie.fr/api/explore/v2.1/catalog/datasets/donmetdec_pav/exports/geojson?lang=fr&timezone=Europe%2FBerlin',
@ -15,7 +16,7 @@ const MappingRouenPAV: MappingConfigType = {
}, },
filters: { 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 // 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: 100 // offset: 50
}, },
add_not_mapped_tags_too: false, add_not_mapped_tags_too: false,
boolean_keys: [ boolean_keys: [
@ -24,14 +25,22 @@ const MappingRouenPAV: MappingConfigType = {
tags_to_ignore_if_value_is: ['Non renseigne'], tags_to_ignore_if_value_is: ['Non renseigne'],
tags: { tags: {
// ******* nombres // ******* nombres
capacite: 'capacity', pavtyp: {
pavtyp: {
remove_original_key:true, remove_original_key:true,
conditionnal_values: { conditional_values: {
"Emballages en verre": { "Emballages en verre": {
tags_to_add:{ tags_to_add: {
'recycling:glass_bottles': 'yes' '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'
} }
} }
} }
@ -42,7 +51,7 @@ const MappingRouenPAV: MappingConfigType = {
objectid_1: 'ref:FR:Rouen:pav:object', objectid_1: 'ref:FR:Rouen:pav:object',
pavid: 'ref:FR:Rouen:pav:id', pavid: 'ref:FR:Rouen:pav:id',
pavnom: 'ref:FR:Rouen:pav:name', pavnom: 'ref:FR:Rouen:pav:name',
// acces_reglement: 'access', commune: 'ref:FR:Rouen:commune',
} }
} }

File diff suppressed because it is too large Load Diff