Laboratory-based Vis–NIR spectra of soil samples were gained.
The contents of eight soil elements were measured.
Five spectral indices were calculated based on two spectral formats.
Performances of spectral indices in estimating soil element contents were showed.
Performances of MLSR and PLSR in estimating soil element contents were compared.