This function will instersect all segments with SAFRAN grid in order to assign up to 8 SAFRAN grid to each segments, with length proportion of the segment in each grid.
Arguments
- path_segments
string Path to the shapefile with segments to merge.
- path_SafranGRID
string Path to the shapefile with all SAFRAN GRID IDs.
- export_file
string Path to the shapefile with results to create.
Details
This function use sf::st_intersection()
to intersect the SAFRAN grid shapefile and
the river segments in order to extract the length ratio of every segments in each Safran GRID.
The number maximum of SAFRAN grid that 1 segment can cross is 8 (limit fixed by T-NET)