Soil classification based on spectral and environmental variables