We combine population genetics with species distribution modelling and geographical information. Our work has shown the scale-dependent effect of the landscape on gene flow and population structure in bats.