Skip to content

Commit aecced2

Browse files
ajout champ transport exceptionnnel
1 parent 0aff98b commit aecced2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

r2gg/_pivot_to_pgr.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ def pivot_to_pgr(source, cost_calculation_file_path, connection_work, connection
7979
matieres_dangereuses_interdites boolean,
8080
cpx_gestionnaire text,
8181
cpx_numero_route_europeenne text,
82-
cpx_classement_administratif text
82+
cpx_classement_administratif text,
83+
transport_exceptionnel boolean
8384
);""".format(ways_table_name)
8485
logger.debug("SQL: {}".format(create_table))
8586
cursor_out.execute(create_table)
@@ -256,7 +257,8 @@ def pivot_to_pgr(source, cost_calculation_file_path, connection_work, connection
256257
'matieres_dangereuses_interdites as matieres_dangereuses_interdites',
257258
'cpx_gestionnaire as cpx_gestionnaire',
258259
'cpx_numero_route_europeenne as cpx_numero_route_europeenne',
259-
'cpx_classement_administratif as cpx_classement_administratif'
260+
'cpx_classement_administratif as cpx_classement_administratif',
261+
'transport_exceptionnel as transport_exceptionnel'
260262
]
261263
in_columns = attribute_columns.copy()
262264
for variable in costs["variables"]:

0 commit comments

Comments
 (0)