mirror of
https://forge.chapril.org/tykayn/wololo
synced 2025-06-20 01:34:42 +02:00
add filter by date, and RNB conversion
This commit is contained in:
parent
97f818a29e
commit
11c272c582
8 changed files with 100 additions and 3 deletions
|
@ -21,6 +21,8 @@ const MappingIRVE: MappingConfigType = {
|
|||
filters: {
|
||||
enable_coordinates_filter: false,
|
||||
enable_properties_filter: true,
|
||||
// filter_points_older_than_year: 2024,
|
||||
// filter_points_by_year_property: 'date_mise_en_service',
|
||||
filter_points_lesser_than_NkW: 50 // ne pas sortir les points qui ont moins de ce nombre de puissance nominale
|
||||
// add only geojson points who are found having this regex in the zipcode properties
|
||||
// properties: {
|
||||
|
|
33
mappings/converters/configRnb.ts
Normal file
33
mappings/converters/configRnb.ts
Normal file
|
@ -0,0 +1,33 @@
|
|||
/**
|
||||
* points d'apport volontaire de Rouen
|
||||
*/
|
||||
import MappingConfigType from "../mapping-config.type";
|
||||
|
||||
// référentiel national des bâtiments
|
||||
const MappingRnb: MappingConfigType = {
|
||||
config_name: "MappingRnb de référentiel national des bâtiments",
|
||||
config_author: "tykayn <contact@cipherbliss.com>",
|
||||
default_properties_of_point: {},
|
||||
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
|
||||
rnb_id: 'ref:FR:RNB',
|
||||
// ******* textes
|
||||
status: 'ref:FR:RNB:status',
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
export default MappingRnb;
|
Loading…
Add table
Add a link
Reference in a new issue