Source code for iaa_od.models.geometry

from dataclasses import dataclass

[docs] @dataclass(slots=True, kw_only=True) class Geometry: """ Represents the geometry of an image in a geographical context. Attributes: type (str): The type of geometry. coords (str): The coordinates defining the geometry. """ type: str coords: str def __str__(self): geometry_string = "Geometry type: " + self.type + "\n" geometry_string += "Geometry coordinates: [" + ', '.join(str(coord) for coord in self.coords) + "]" return geometry_string