Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions openeo_pg_parser_networkx/pg_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
model_validator,
validator,
)
from shapely.geometry import Polygon

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -149,14 +148,7 @@ class BoundingBox(BaseModel, arbitrary_types_allowed=True):
@property
def polygon(self) -> Polygon:
""""""
return Polygon(
[
(self.west, self.south),
(self.west, self.north),
(self.east, self.north),
(self.east, self.south),
]
)
return Polygon.from_bounds(self.west, self.south, self.east, self.north)


class Date(RootModel):
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ python = ">=3.10,<3.13"
pydantic = "^2.4.0"
pyproj = "^3.4.0"
networkx = ">=3.0.0"
shapely = ">=1.8"
geojson-pydantic = "^1.0.0"
numpy = "^1.20.3"
pendulum = ">=3.0.0"
Expand Down