
Data generalization

Figure 1. Procedure flow chart for data visualization
a. Building an iterative model in order to transform all the data into the same projection: UTM 17 zone.
​
b. Clipping all the data based on the city boundary layer.
​
c. Creating an attribute table that includes hour, week and month information for the traffic accidents data by using excel.
​
d. Adding binary fields for the traffic accidents data by using field calculator. For the convenience of calculation, we added several binary fields (0/1) for variables we are going to examine, that included the spatial variables such as road location and speed; and temporal variables from the times of a day, the week and the season. For example, we added a field named “intersection” , if an accident occurred at intersection, we gave it a value of 1; if it occurred at mid-block, we gave the value 0.