add surveillance opendata for Rouen city
This commit is contained in:
parent
401c17f8f0
commit
5d84b5032a
@ -24,12 +24,13 @@ const allowed_configs = [
|
||||
'mappingIssy2Roues', 'mappingConfigIRVE', 'mappingConfigIRVEFromOsmose',
|
||||
'mappingConfigIRVE_simple', 'mappingTest', 'ConfigIRVE',
|
||||
'mappingRouenParkingVelos', 'mappingFINESS', 'MappingArbresIssy',
|
||||
'MappingArbres92', 'MappingMuseums', 'MappingRouenPAV', 'MappingAskAngela', 'MappingPlanningFamlial',
|
||||
'MappingArbres92', 'MappingMuseums', 'MappingRouenPAV', 'MappingAskAngela', 'MappingPlanningFamlial','MappingSurveillanceRouen'
|
||||
];
|
||||
|
||||
const minimist = require('minimist');
|
||||
import MappingAskAngela from "./mappings/converters/configAskAngela";
|
||||
import MappingPlanningFamlial from "./mappings/converters/configPlanningFamilial";
|
||||
import MappingSurveillanceRouen from "./mappings/converters/configSurveillance";
|
||||
|
||||
const debugLog = utils.debugLog;
|
||||
|
||||
@ -457,9 +458,12 @@ function setMappingConfigFromName(engine_conf_choice: string) {
|
||||
Mapping_engine.setConfig(MappingAskAngela)
|
||||
}else if (engine_conf_choice == 'MappingPlanningFamlial') {
|
||||
Mapping_engine.setConfig(MappingPlanningFamlial)
|
||||
}else if (engine_conf_choice == 'MappingSurveillanceRouen') {
|
||||
Mapping_engine.setConfig(MappingSurveillanceRouen)
|
||||
}
|
||||
} else {
|
||||
Mapping_engine.setConfig(mappingConfigIRVE)
|
||||
console.error('mauvais paramètre de Mapping_engine: '+engine_conf_choice, '.\n Veuillez en sélectionner un parmi ceux autorisés avec l option --engine-config=MaConfigQuiVaBien parmi ceux ci :', allowed_configs)
|
||||
return
|
||||
}
|
||||
}
|
||||
let currentMappingConfig = Mapping_engine.getConfig();
|
||||
|
1976
etalab_data/surveillance/rouen_surveillance.json
Normal file
1976
etalab_data/surveillance/rouen_surveillance.json
Normal file
File diff suppressed because it is too large
Load Diff
32
mappings/converters/configSurveillance.ts
Normal file
32
mappings/converters/configSurveillance.ts
Normal file
@ -0,0 +1,32 @@
|
||||
/**
|
||||
* caméras référencées sur le site de rouen
|
||||
*
|
||||
* certaines ont une précision "Caméra de sécurité sur borne escamotable"
|
||||
* https://wiki.openstreetmap.org/wiki/Tag:man_made=surveillance
|
||||
*/
|
||||
import MappingConfigType from "../mapping-config.type";
|
||||
|
||||
const MappingSurveillanceRouen: MappingConfigType = {
|
||||
config_name: "caméras de Rouen",
|
||||
config_author: "tykayn <contact@cipherbliss.com>",
|
||||
default_properties_of_point: {
|
||||
'man_made ': 'surveillance',
|
||||
},
|
||||
source: {
|
||||
// source faite à partir de data scraping du site français
|
||||
geojson_path: 'https://umap.openstreetmap.fr/fr/datalayer/44208/f923d80e-2ede-4ab8-b883-a7646491c506/',
|
||||
url: 'https://rouen.fr/videoprotection'
|
||||
},
|
||||
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: 1
|
||||
},
|
||||
add_not_mapped_tags_too: false,
|
||||
boolean_keys: [],
|
||||
tags_to_ignore_if_value_is: ['Non renseigne'],
|
||||
tags: {
|
||||
//
|
||||
}
|
||||
}
|
||||
|
||||
export default MappingSurveillanceRouen;
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
1929
output/rouen_surveillance_from_umap.geojson
Normal file
1929
output/rouen_surveillance_from_umap.geojson
Normal file
File diff suppressed because it is too large
Load Diff
11
update_scripts/convert_surveillance_rouen.sh
Executable file
11
update_scripts/convert_surveillance_rouen.sh
Executable file
@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
echo "convertir les fichiers de données en fichier geojson pour JOSM "
|
||||
|
||||
output_file_name='rouen_surveillance_from_umap.geojson'
|
||||
mappingType='MappingSurveillanceRouen'
|
||||
|
||||
ts-node convert_to_osm_tags.ts --source="etalab_data/surveillance/rouen_surveillance.json" --output-file="$output_file_name" --engine-config="$mappingType"
|
||||
|
||||
echo "fichier généré: $PWD/output/$output_file_name"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user