You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lib\site-packages\surrealdb\data\types\geometry.py", line 66, in parse_coordinates
return GeometryPoint(coordinates[0], coordinates[1])
~~~~~~~~~~~^^^
TypeError: 'GeometryPoint' object is not subscriptable
Printing the coordinates variable yields the following:
Describe the bug
When attempting to insert via db.query, I have some strange behaviour when attempting to feed a "geometry" type value.
As reported in surrealdb/surrealdb#5204 (comment) :
Lib\site-packages\surrealdb\data\types\geometry.py", line 66, in parse_coordinates
return GeometryPoint(coordinates[0], coordinates[1])
~~~~~~~~~~~^^^
TypeError: 'GeometryPoint' object is not subscriptable
Printing the coordinates variable yields the following:
[-7.9735981, 37.0497115]
[-7.9758082, 37.0457381]
[-7.9756148, 37.0383393]
[-7.9767212, 37.0314215]
[-7.954491, 37.0309418]
[-7.9550154, 37.0423815]
[-7.964371, 37.0471084]
[-7.9735981, 37.0497115]
GeometryPoint(longitude=-7.9735981, latitude=37.0497115)
Steps to reproduce
The text was updated successfully, but these errors were encountered: