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
处理环路的时候,代码报错,我是用的link和node是create_node_from_link得到的点和线文件。
File "D:\03gotractit算法\路网模块.py", line 47, in
new_link, new_node = ng.NetReverse.circle_process(link_gdf=l, node_gdf=n)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin4\miniconda3\envs\gotractit\Lib\site-packages\gotrackit\netreverse\NetGen.py", line 508, in circle_process
my_net = Net(link_gdf=link_gdf,
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin4\miniconda3\envs\gotractit\Lib\site-packages\gotrackit\WrapsFunc.py", line 13, in inner
res = f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "C:\Users\admin4\miniconda3\envs\gotractit\Lib\site-packages\gotrackit\map\Net.py", line 123, in init
self.__node = Node(node_gdf=node_gdf, is_check=is_check, init_available_node=self.cache_id,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin4\miniconda3\envs\gotractit\Lib\site-packages\gotrackit\map\Node.py", line 35, in init
self.planar_crs = judge_plain_crs_based_on_node(node_gdf=self.__node_gdf)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin4\miniconda3\envs\gotractit\Lib\site-packages\gotrackit\tools\geo_process.py", line 297, in judge_plain_crs_based_on_node
assert -180.0 <= mean_x <= 180.0, 'the value of lng must in [-180, 180]'
^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: the value of lng must in [-180, 180]
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
处理环路的时候,代码报错,我是用的link和node是create_node_from_link得到的点和线文件。
File "D:\03gotractit算法\路网模块.py", line 47, in
new_link, new_node = ng.NetReverse.circle_process(link_gdf=l, node_gdf=n)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin4\miniconda3\envs\gotractit\Lib\site-packages\gotrackit\netreverse\NetGen.py", line 508, in circle_process
my_net = Net(link_gdf=link_gdf,
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin4\miniconda3\envs\gotractit\Lib\site-packages\gotrackit\WrapsFunc.py", line 13, in inner
res = f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "C:\Users\admin4\miniconda3\envs\gotractit\Lib\site-packages\gotrackit\map\Net.py", line 123, in init
self.__node = Node(node_gdf=node_gdf, is_check=is_check, init_available_node=self.cache_id,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin4\miniconda3\envs\gotractit\Lib\site-packages\gotrackit\map\Node.py", line 35, in init
self.planar_crs = judge_plain_crs_based_on_node(node_gdf=self.__node_gdf)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin4\miniconda3\envs\gotractit\Lib\site-packages\gotrackit\tools\geo_process.py", line 297, in judge_plain_crs_based_on_node
assert -180.0 <= mean_x <= 180.0, 'the value of lng must in [-180, 180]'
^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: the value of lng must in [-180, 180]
Beta Was this translation helpful? Give feedback.
All reactions