r2gg 2.2.6__py3-none-any.whl → 3.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- r2gg/__about__.py +1 -1
- r2gg/_lua_builder.py +6 -3
- r2gg/_pivot_to_pgr.py +12 -4
- {r2gg-2.2.6.dist-info → r2gg-3.1.0.dist-info}/METADATA +15 -6
- {r2gg-2.2.6.dist-info → r2gg-3.1.0.dist-info}/RECORD +9 -9
- {r2gg-2.2.6.dist-info → r2gg-3.1.0.dist-info}/WHEEL +1 -1
- {r2gg-2.2.6.dist-info → r2gg-3.1.0.dist-info}/entry_points.txt +0 -0
- {r2gg-2.2.6.dist-info → r2gg-3.1.0.dist-info/licenses}/LICENSE +0 -0
- {r2gg-2.2.6.dist-info → r2gg-3.1.0.dist-info}/top_level.txt +0 -0
r2gg/__about__.py
CHANGED
|
@@ -34,7 +34,7 @@ __uri_repository__ = "https://github.com/IGNF/route-graph-generator/"
|
|
|
34
34
|
__uri_tracker__ = f"{__uri_repository__}issues/"
|
|
35
35
|
__uri__ = __uri_repository__
|
|
36
36
|
|
|
37
|
-
__version__ = "
|
|
37
|
+
__version__ = "3.1.0"
|
|
38
38
|
__version_info__ = tuple(
|
|
39
39
|
[
|
|
40
40
|
int(num) if num.isdigit() else num
|
r2gg/_lua_builder.py
CHANGED
|
@@ -172,9 +172,12 @@ def _build_process_way(costs_config, output_cost):
|
|
|
172
172
|
process_way_string += "\n"
|
|
173
173
|
|
|
174
174
|
# durée
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
175
|
+
current_profile = output_cost["name"].split("_")[-1]
|
|
176
|
+
for output in costs_config["outputs"]:
|
|
177
|
+
if output["name"] == "cost_s_" + current_profile:
|
|
178
|
+
process_way_string += "\n -- durée\n"
|
|
179
|
+
process_way_string += " result.duration = {}\n".format(compute_operations_string(output["operations"]))
|
|
180
|
+
process_way_string += "\n"
|
|
178
181
|
|
|
179
182
|
# gestion du sens direct
|
|
180
183
|
process_way_string += " -- gestion du sens direct\n"
|
r2gg/_pivot_to_pgr.py
CHANGED
|
@@ -64,7 +64,6 @@ def pivot_to_pgr(source, cost_calculation_file_path, connection_work, connection
|
|
|
64
64
|
nombre_de_voies text,
|
|
65
65
|
insee_commune_gauche text,
|
|
66
66
|
insee_commune_droite text,
|
|
67
|
-
bande_cyclable text,
|
|
68
67
|
itineraire_vert boolean,
|
|
69
68
|
sens_de_circulation text,
|
|
70
69
|
reserve_aux_bus text,
|
|
@@ -79,7 +78,12 @@ def pivot_to_pgr(source, cost_calculation_file_path, connection_work, connection
|
|
|
79
78
|
matieres_dangereuses_interdites boolean,
|
|
80
79
|
cpx_gestionnaire text,
|
|
81
80
|
cpx_numero_route_europeenne text,
|
|
82
|
-
cpx_classement_administratif text
|
|
81
|
+
cpx_classement_administratif text,
|
|
82
|
+
transport_exceptionnel boolean,
|
|
83
|
+
vla_par_defaut integer,
|
|
84
|
+
cout_penalites numeric,
|
|
85
|
+
vehicule_leger_interdit boolean,
|
|
86
|
+
cout_vehicule_prioritaire numeric
|
|
83
87
|
);""".format(ways_table_name)
|
|
84
88
|
logger.debug("SQL: {}".format(create_table))
|
|
85
89
|
cursor_out.execute(create_table)
|
|
@@ -241,7 +245,6 @@ def pivot_to_pgr(source, cost_calculation_file_path, connection_work, connection
|
|
|
241
245
|
'nombre_de_voies as nombre_de_voies',
|
|
242
246
|
'insee_commune_gauche as insee_commune_gauche',
|
|
243
247
|
'insee_commune_droite as insee_commune_droite',
|
|
244
|
-
'bande_cyclable as bande_cyclable',
|
|
245
248
|
'itineraire_vert as itineraire_vert',
|
|
246
249
|
'sens_de_circulation as sens_de_circulation',
|
|
247
250
|
'reserve_aux_bus as reserve_aux_bus',
|
|
@@ -256,7 +259,12 @@ def pivot_to_pgr(source, cost_calculation_file_path, connection_work, connection
|
|
|
256
259
|
'matieres_dangereuses_interdites as matieres_dangereuses_interdites',
|
|
257
260
|
'cpx_gestionnaire as cpx_gestionnaire',
|
|
258
261
|
'cpx_numero_route_europeenne as cpx_numero_route_europeenne',
|
|
259
|
-
'cpx_classement_administratif as cpx_classement_administratif'
|
|
262
|
+
'cpx_classement_administratif as cpx_classement_administratif',
|
|
263
|
+
'transport_exceptionnel as transport_exceptionnel',
|
|
264
|
+
'vla_par_defaut as vla_par_defaut',
|
|
265
|
+
'cout_penalites as cout_penalites',
|
|
266
|
+
'vehicule_leger_interdit as vehicule_leger_interdit',
|
|
267
|
+
'cout_vehicule_prioritaire as cout_vehicule_prioritaire'
|
|
260
268
|
]
|
|
261
269
|
in_columns = attribute_columns.copy()
|
|
262
270
|
for variable in costs["variables"]:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: r2gg
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.1.0
|
|
4
4
|
Summary: Route Graph Generator (r2gg) est un script Python qui permet la génération de graphes pour des moteurs de calcul d'itinéraire
|
|
5
5
|
Home-page: https://github.com/IGNF/route-graph-generator/
|
|
6
6
|
Author: IGNF
|
|
@@ -18,10 +18,19 @@ Classifier: Operating System :: OS Independent
|
|
|
18
18
|
Classifier: Topic :: Scientific/Engineering :: GIS
|
|
19
19
|
Description-Content-Type: text/markdown
|
|
20
20
|
License-File: LICENSE
|
|
21
|
-
Requires-Dist: lxml
|
|
22
|
-
Requires-Dist: psycopg2
|
|
23
|
-
Requires-Dist: sqlparse
|
|
24
|
-
Requires-Dist: osmium
|
|
21
|
+
Requires-Dist: lxml==4.6.4
|
|
22
|
+
Requires-Dist: psycopg2==2.9.1
|
|
23
|
+
Requires-Dist: sqlparse==0.4.2
|
|
24
|
+
Requires-Dist: osmium==3.2.0
|
|
25
|
+
Dynamic: author
|
|
26
|
+
Dynamic: classifier
|
|
27
|
+
Dynamic: description
|
|
28
|
+
Dynamic: description-content-type
|
|
29
|
+
Dynamic: home-page
|
|
30
|
+
Dynamic: keywords
|
|
31
|
+
Dynamic: license-file
|
|
32
|
+
Dynamic: requires-dist
|
|
33
|
+
Dynamic: summary
|
|
25
34
|
|
|
26
35
|
# Route Graph Generator
|
|
27
36
|
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
r2gg/__about__.py,sha256=
|
|
1
|
+
r2gg/__about__.py,sha256=F3opKSaubhHsAV6IREP11XcoEIeWDiz8fG7RgfRR4Ok,1343
|
|
2
2
|
r2gg/__init__.py,sha256=zERkbHrNMbNZleuOxsfA7afQExXxpP7-IWVP1IFzNNs,88
|
|
3
3
|
r2gg/_configure.py,sha256=5kNElkBGKR2vmSBNTJtaLPuLNDIiNOsTIGnoA80qzKg,3914
|
|
4
4
|
r2gg/_file_copier.py,sha256=NzDd6ZqxQsQ_EulXg6jZxECUMjlJ0VBtr40-c1Rde-w,578
|
|
5
|
-
r2gg/_lua_builder.py,sha256=
|
|
5
|
+
r2gg/_lua_builder.py,sha256=W00BWFkRoKSyBgcWCl00hxBNqvE3Yf7Aw6DeLLwfO5M,10420
|
|
6
6
|
r2gg/_main.py,sha256=r2wOXvZLOp8VR6XF4rS37PVOGZ5MvFyYH0j0VytuI4g,21922
|
|
7
7
|
r2gg/_osm_building.py,sha256=MFFY3EYOVO4rPsYk90Oda70KH1DKW2rlRj8XT4Vx_4U,4227
|
|
8
8
|
r2gg/_osm_to_pbf.py,sha256=ZCGaqao4r2xkwIvKjQSOBd7TVXzO_KDAT2PptnCuAoY,1088
|
|
9
9
|
r2gg/_output_costs_from_costs_config.py,sha256=g7Qy4tlUIOA7DJcwXW9ZxhcOJ5Srq1c8hufylI2e0m8,6208
|
|
10
10
|
r2gg/_path_converter.py,sha256=CTtFHucxTSDB89TMbTO7Q0VqRCs2295GTA4_3cftUVc,340
|
|
11
11
|
r2gg/_pivot_to_osm.py,sha256=sE9q29-C_E5rgZsV7CmQIlG67tEMZRgt4yqUC9FeTGo,8202
|
|
12
|
-
r2gg/_pivot_to_pgr.py,sha256=
|
|
12
|
+
r2gg/_pivot_to_pgr.py,sha256=bfwRdUYcpIVq2vSJ-pb7eHyq2WUdl4KG2D2F6JrlsMQ,17649
|
|
13
13
|
r2gg/_read_config.py,sha256=VQ6d6Oi1aKHwwURA3KrbpWHK0zP18aJ98XQJiHZb8oI,721
|
|
14
14
|
r2gg/_sql_building.py,sha256=DefYIerZ0k_yltgJFaSzTXAZPSSUH7WAxN3d5FceoWw,840
|
|
15
15
|
r2gg/_subprocess_execution.py,sha256=ipsynsXohonN9YfmxX7DFTFCvJWsvrLDuA5Y-0QDUDM,1603
|
|
16
16
|
r2gg/_valhalla_lua_builder.py,sha256=vNUnsu4yYQflnNv49-ElxrfIqa4b30vJP740ab7M7rY,13816
|
|
17
17
|
r2gg/cli.py,sha256=2QM7pzvh-iz0kqNsPFtnDiCVAwn63o4GEQK4QwCcgSc,2894
|
|
18
|
-
r2gg-
|
|
19
|
-
r2gg-
|
|
20
|
-
r2gg-
|
|
21
|
-
r2gg-
|
|
22
|
-
r2gg-
|
|
23
|
-
r2gg-
|
|
18
|
+
r2gg-3.1.0.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
19
|
+
r2gg-3.1.0.dist-info/METADATA,sha256=KAqkb9jcVB1DwLSaLD52-t9OCJemAFr3BfaBVvGcTHg,5199
|
|
20
|
+
r2gg-3.1.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
21
|
+
r2gg-3.1.0.dist-info/entry_points.txt,sha256=Km7XbbcVI9jy1TQI0raQfRyKdNGAUIwVkkBG5YeQP4k,275
|
|
22
|
+
r2gg-3.1.0.dist-info/top_level.txt,sha256=fj9IaWXORCdMRcnWWZ7LmvOG4W_sVH8J4BUWf1pM37c,5
|
|
23
|
+
r2gg-3.1.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|