Skip to content

Commit 85ccb7a

Browse files
rollback some changes
1 parent a292158 commit 85ccb7a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

pypsdm/db/weather/models.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from typing import Any, ClassVar, Dict
33

44
from shapely import Point
5-
from shapely.wkb import dumps, loads
5+
from shapely.wkb import loads
66
from sqlalchemy import Column, LargeBinary
77
from sqlmodel import Field, SQLModel
88

@@ -101,6 +101,5 @@ def x(self) -> float:
101101

102102
@staticmethod
103103
def from_xy(id: int, x: float, y: float) -> "Coordinate":
104-
point = Point(x, y)
105-
wkb_data = dumps(point)
106-
return Coordinate(id=id, coordinate=wkb_data)
104+
wkb = Point(x, y).wkb
105+
return Coordinate(id=id, coordinate=wkb)

0 commit comments

Comments
 (0)