示例#1
0
 def test_Squareness(self):
     self.df_buildings["squ"] = mm.Squareness(self.df_buildings).series
     check = approx(3.707, rel=1e-3)
     assert self.df_buildings["squ"][0] == check
     self.df_buildings["squ"] = mm.Squareness(
         self.df_buildings.exterior).series
     assert self.df_buildings["squ"].isna().all()
示例#2
0
 def time_Squareness(self):
     mm.Squareness(self.df_buildings)
示例#3
0
 def test_Squareness(self):
     self.df_buildings["squ"] = mm.Squareness(self.df_buildings).series
     check = approx(3.707, rel=1e-3)
     assert self.df_buildings["squ"][0] == check
示例#4
0
 def test_Squareness(self):
     self.df_buildings["squ"] = mm.Squareness(self.df_buildings).series
     check = round(3.7075816043359855, 4)
     assert round(self.df_buildings["squ"][0], 4) == check