Start with the parcel's municipality and district. In Wheatland County's AG District the setbacks are large: 75 ft from a public road allowance on every side that faces one, which on a corner quarter can push a big machine shed well back into the yard. If the yard is within 300 m of a provincial highway, or 800 m of a highway intersection, a provincial roadside development permit is needed as well, and the county leaves highway setbacks to the province.
Plan the building around its farm use. The county's Farm Building definition covers livestock housing, machinery storage and repair, produce and feed storage, and a personal riding arena. A shop that also serves an off-farm business is a different use and may need different approval, so describe the use accurately in the application.
Lot coverage tops out at 40% of the parcel for buildings and hard surfaces combined, and buildings must be at least 1.52 m apart. Footing design follows the soils on the yard site; our foundations guide covers the options.