Easy. Engineers and people much smarter than us in the field of Geotechnical Engineering, structural engineering, etc. it cant be too hard to figure out if you know what you are doing.
FIFY
You would want a geotechnical report of the soil conditions and foundation recommendations for the proposed build site. These recommendations would then go to a structural engineer to design the size/depth of foundations/walls/etc.