It is common to want to extract link data from UFS files to analyse it, to produce better looking reports or to send it to other design teams.
In those cases dumping data from UFS files can become tedius and mistake prone. The typical tools like batch files tend to be rigid and difficult to addapt.
Reading a simple file with read_ufs will dump all available variables from the UFS. Incomplete ufs file report warnings at the moment due to miss one or more columns (developing)
# As always we define our XEXES backend in this case 11.4
set_xexes("C:/Program Files (x86)/Atkins/SATURN/XEXES 11.4.07H MC X7/")
epsom_ufs <- saturnR_example("Epsom98oba.UFS")
ufs <- read_ufs(epsom_ufs, load_geometry = TRUE, selection_mode = "all_links", step = 1)
head(data.frame(ufs[,1:11])) #print the first few lines and columns
#> nodeA nodeB X1 Y1 X2 Y2 nodeC lanes stacking_cap ff_time
#> 1 10 200 520362 160799 520500 160753 NA 1 24.35 16.8
#> 2 100 350 520663 160598 520663 160574 NA 2 10.43 3.6
#> 3 110 210 520635 160809 520617 160845 NA 1 5.22 3.6
#> 4 20 230 520762 161159 520779 161112 NA 1 104.35 54.0
#> 5 200 10 520500 160753 520362 160799 NA 1 24.35 16.8
#> 6 200 210 520500 160753 520617 160845 NA 1 13.91 9.6
#> ff_speed geometry
#> 1 30 LINESTRING (520362 160799, ...
#> 2 30 LINESTRING (520663 160598, ...
#> 3 30 LINESTRING (520635 160809, ...
#> 4 40 LINESTRING (520762 161159, ...
#> 5 30 LINESTRING (520500 160753, ...
#> 6 30 LINESTRING (520500 160753, ...
As we are obtaining the coordinates we can now export as a shp file
Or see the result on a leaflet map