"And the LORD spoke to Moses and to Aaron, saying: Speak to the children of Israel, saying: These are the living creatures that you may eat" and so forth (Leviticus 11:1-2). This is what Scripture says: "He stood and measured the earth" and so forth (Habakkuk 3:6). What is the meaning of "He stood and measured the earth"? Rather, at the time when the Holy One, blessed be He, sought to give the Torah, He stood and measured the earth, and He gave the Torah publicly, in the wilderness. Therefore, "He stood and measured the earth."
Why the Holy One Measured the Earth Before Giving the Torah
Midrash Tanchuma Buber, Shmini 10:1
וידבר ה' אל משה ואל אהרן לאמר, דברו אל בני ישראל לאמר, זאת החיה אשר תאכלו וגו' (ויקרא יא א ב), (כתיב) [זש"ה] עמד וימודד ארץ וגו' (חבקוק ג ו), מהו עמד וימודד ארץ, אלא בשעה שבקש הקב"ה ליתן את התורה עמד ומדד את הארץ, ונתן את התורה בפרהסיא במדבר, לכך עמד וימודד ארץ.