diff --git a/pygeoif/factories.py b/pygeoif/factories.py index 61452dc..96d5ac7 100644 --- a/pygeoif/factories.py +++ b/pygeoif/factories.py @@ -95,6 +95,7 @@ def box( if not ccw: coords.reverse() + def shape( context: Union[ GeoType, diff --git a/pygeoif/geometry.py b/pygeoif/geometry.py index 3c48d7d..1edf0ef 100644 --- a/pygeoif/geometry.py +++ b/pygeoif/geometry.py @@ -598,8 +598,7 @@ def has_z(self) -> Optional[bool]: def _wkt_coords(self) -> str: ec = self.exterior._wkt_coords # noqa: SLF001 ic = "".join( - f",({interior._wkt_coords})" # noqa: SLF001 - for interior in self.interiors + f",({interior._wkt_coords})" for interior in self.interiors # noqa: SLF001 ) return f"({ec}){ic}" @@ -751,8 +750,7 @@ def geoms(self) -> Iterator[Point]: @property def _wkt_coords(self) -> str: return ", ".join( - f"({point._wkt_coords})" # noqa: SLF001 - for point in self.geoms + f"({point._wkt_coords})" for point in self.geoms # noqa: SLF001 ) @property @@ -832,8 +830,7 @@ def geoms(self) -> Iterator[LineString]: @property def _wkt_coords(self) -> str: return ",".join( - f"({linestring._wkt_coords})" # noqa: SLF001 - for linestring in self.geoms + f"({linestring._wkt_coords})" for linestring in self.geoms # noqa: SLF001 ) @property