The railroads were important, but a lot of surveying got done out of railroad-owned land, too. As long as people were going to settle somewhere, somebody had to determine parcel boundaries. The surveyors who did all this work are almost the unsung heroes of western settlement IMO.