+ @property
+ def area(self) -> float:
+ """ Return the area of the box in WGS84.
+ """
+ return (self.coords[2] - self.coords[0]) * (self.coords[3] - self.coords[1])
+
+
+ def sql_value(self) -> Any:
+ """ Create an SQL expression for the box.
+ """
+ return geoalchemy2.functions.ST_MakeEnvelope(*self.coords, 4326)
+
+