单项选择题

A.To keep out boats that are too large for the canal.
B.To measure the tonnage of canal boats.
C.To load and unload the cargo.
D.To change the depth of the water.