Geological process whereby a mineral or sedimentary rock deposit is generated where it is found or observed