One advantage for the Confederates was the strength of the Dimmock Line, formidable artillery positions connected by earthworks and trenches for over 10 miles , circling the city and anchored on the Appomattox River to the east and west.