Skip to content

Commit ece4178

Browse files
committed
remove shapely
1 parent 9f72a9d commit ece4178

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

openeo_pg_parser_networkx/pg_schema.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
model_validator,
3131
validator,
3232
)
33-
from shapely.geometry import Polygon
3433

3534
logger = logging.getLogger(__name__)
3635

@@ -149,15 +148,7 @@ class BoundingBox(BaseModel, arbitrary_types_allowed=True):
149148
@property
150149
def polygon(self) -> Polygon:
151150
""""""
152-
return Polygon(
153-
[
154-
(self.west, self.south),
155-
(self.west, self.north),
156-
(self.east, self.north),
157-
(self.east, self.south),
158-
]
159-
)
160-
151+
return Polygon.from_bounds(self.west, self.south, self.east, self.north)
161152

162153
class Date(RootModel):
163154
root: datetime.datetime

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ python = ">=3.9,<3.12"
2727
pydantic = "^2.4.0"
2828
pyproj = "^3.4.0"
2929
networkx = "^2.8.6"
30-
shapely = ">=1.8"
3130
geojson-pydantic = "^1.0.0"
3231
numpy = "^1.20.3"
3332
pendulum = "^2.1.2"

0 commit comments

Comments
 (0)