From Niche to Distribution: Basic Modeling Principles and Applications