-
Notifications
You must be signed in to change notification settings - Fork 0
Ajout nouveaux facteurs et MAJ données anciens #179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 11 commits
9dff4c2
e2935a0
98e4010
8ce5113
ee466d0
e8a9328
7d0c80c
aa64ad9
4a5e6bc
b2246dc
c41fec0
4b194a9
34f42d9
7fdf2f7
7f051f5
99722dc
5875162
58f4bab
5751804
1e70bf0
ebd4992
2769f38
9453bbf
2d49058
67a7c27
edca9cf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,10 +8,11 @@ | |
| }, | ||
| { | ||
| "name": "SLT", | ||
| "file": "sltmateriel.geojson", | ||
| "file": "voirie.gpkg", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Est-ce le bon nom de fichier ? Dans ce cas, pourquoi avoir également ajouté (en commentaire) un autre fichier
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oui c'est le bon nom. |
||
| "scripts": ["slt.py"], | ||
| "layer_name": "pub_patrimoinevoirie.sltmateriel", | ||
| "actions": [ | ||
| {"buffer_size": 2, "union": True}, | ||
| {"buffer_size": 2, "union": False}, | ||
| ], | ||
| "factors": ["Signalisation tricolore et lumineuse matériel"], | ||
| "output_type": "POINT", | ||
|
|
@@ -20,10 +21,55 @@ | |
| "name": "Assainissement", | ||
| "file": "assainissement.geojson", | ||
| "scripts": ["assainissement.py"], | ||
| "actions": [{"buffer_size": 1, "explode": True, "union": True}], | ||
| "actions": [{"buffer_size": 1, "explode": True, "union": False}], | ||
| "factors": ["Assainissement"], | ||
| "output_type": "MULTILINESTRING", | ||
| }, | ||
| # { | ||
| # "name": "Espaces publics", | ||
| # "file": "voirie.gpkg", | ||
| # "layer_name": "pub_patrimoinevoirie.espacepublic", | ||
| # "actions": [ | ||
| # { | ||
| # "filter": { | ||
| # "name": "typeespacepublic", | ||
| # "value": "Parc / jardin public / square", | ||
| # } | ||
| # }, | ||
| # { | ||
| # "filter": { | ||
| # "name": "typeespacepublic", | ||
| # "value": "Giratoire", | ||
| # } | ||
| # }, | ||
| # { | ||
| # "filters": [ | ||
| # { | ||
| # "name": "typeespacepublic", | ||
| # "value": "Aire de jeux", | ||
| # }, | ||
| # { | ||
| # "name": "typeespacepublic", | ||
| # "value": "Espace piétonnier", | ||
| # }, | ||
| # ] | ||
| # }, | ||
| # { | ||
| # "filter": { | ||
| # "name": "typeespacepublic", | ||
| # "value": "Délaissé / Ilot végétalisé", | ||
| # } | ||
| # }, | ||
| # ], | ||
| # "scripts": ["parc.py", "giratoire.py", "jeux.py" "friche_nat.py"], | ||
| # "factors": [ | ||
| # "Parcs et jardins publics", | ||
| # "Giratoires", | ||
| # "Espaces jeux et pietonnier", | ||
| # "Friche naturelle", | ||
| # ], | ||
| # "output_type": "POLYGON", | ||
| # }, | ||
| { | ||
| "name": "Espaces publics", | ||
| "file": "espacepublic.geojson", | ||
|
|
@@ -152,27 +198,43 @@ | |
| { | ||
| "name": "Réseaux gaz", | ||
| "file": "rsx_gaz.geojson", | ||
| "actions": [{"buffer_size": 2, "union": True}], | ||
| "actions": [{"buffer_size": 2, "union": False}], | ||
| "scripts": ["gaz.py"], | ||
| "factors": ["Rsx gaz"], | ||
| "output_type": "LINESTRING", | ||
| }, | ||
| { | ||
| "name": "Réseaux souterrains Enedis", | ||
| "file": "rsx_souterrain_enedis.geojson", | ||
| "actions": [{"buffer_size": 2, "union": True}], | ||
| "actions": [{"buffer_size": 2, "union": False}], | ||
| "scripts": ["souterrain_enedis.py"], | ||
| "factors": ["Rsx souterrains ERDF"], | ||
| "output_type": "LINESTRING", | ||
| }, | ||
| { | ||
| "name": "Réseaux aériens Enedis", | ||
| "file": "rsx_aerien_enedis.geojson", | ||
| "actions": [{"buffer_size": 1, "union": True}], | ||
| "actions": [{"buffer_size": 1, "union": False}], | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Pourquoi ce passage de
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Non avant j'explosais les géométries en suivant une grille régulière pour simplifier les traitements suivants en me permettant de travailler avec juste des bouts de géom. |
||
| "scripts": ["aerien_enedis.py"], | ||
| "factors": ["Rsx aériens ERDF"], | ||
| "output_type": "LINESTRING", | ||
| }, | ||
| { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fichier |
||
| "name": "Place PMR", | ||
| "file": "voirie.gpkg", | ||
| "layer_name": "pub_patrimoinevoirie.emplacementpmr", | ||
| "actions": [{"buffer_size": 3}], | ||
| "factors": ["PMR"], | ||
| "output_type": "POLYGON", | ||
| }, | ||
| { | ||
| "name": "Autopartage", | ||
| "file": "voirie.gpkg", | ||
| "layer_name": "pub_patrimoinevoirie.stationautopartage", | ||
| "actions": [{"buffer_size": 3}], | ||
| "factors": ["Autopartage"], | ||
| "output_type": "POLYGON", | ||
| }, | ||
| ] | ||
| URL_FILES = [ | ||
| { | ||
|
|
@@ -183,7 +245,7 @@ | |
| "outputFormat=GML3&SRSNAME=EPSG:2154&startIndex=0&sortBy=gid", | ||
| "scripts": ["fibre.py"], | ||
| "layer_name": "tel_telecom.telfibreripthd_1", | ||
| "actions": [{"buffer_size": 2, "union": True}], | ||
| "actions": [{"buffer_size": 2, "union": False}], | ||
| "factors": ["Réseau Fibre"], | ||
| "output_type": "LINESTRING", | ||
| }, | ||
|
|
@@ -420,7 +482,7 @@ | |
| "Marchés forains": 1, | ||
| "Pistes cyclable": -1, | ||
| "Plan eau": -5, # -3 | ||
| "Ponts": -3, | ||
| "Ponts": -5, | ||
| "Réseau de chaleur urbain": -3, | ||
| "Voies ferrées": -5, # -2 | ||
| "Strate arborée": 1, | ||
|
|
@@ -434,9 +496,24 @@ | |
| "Rsx gaz": -3, | ||
| "Rsx souterrains ERDF": -1, | ||
| "Rsx aériens ERDF": -2, | ||
| "PMR": -4, | ||
| "Auto-partage": -2, | ||
| # "QPV": 1, | ||
| } | ||
|
|
||
| UPDATES = [ | ||
| { | ||
| "name": "Réseau Fibre", | ||
| "file": "voirie.gpkg", | ||
| "layer_name": "pub_app_patrimoinevoirie.liengeniecivil", | ||
| "actions": [ | ||
| {"buffer_size": 2, "union": False}, | ||
| ], | ||
| "factors": ["Fibre"], | ||
| "output_type": "POINT", | ||
| }, | ||
| ] | ||
|
|
||
| LCZ = { | ||
| "1": "Ensemble compact de tours", | ||
| "2": "Ensemble compact d'immeubles", | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
J'ai l'impression que tu as grandement simplifié le code, sans ajouter de nouvelle dépendance.
Est-ce que tu as aussi constaté eu des gains de temps de calcul ?
(c'est cool niveau comm de dire qu'on a eu des améliorations de perfs !)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Non pas de gain, ni de différence. Juste maintenant c'est
mapbox_vector_tilequi fait les opérations au lieu que ce soit nous à la main.