地图匹配报错 #20
Unanswered
Murphy666-code
asked this question in
Q&A
地图匹配报错
#20
Replies: 1 comment 7 replies
-
路网坐标系不对,不是EPSG:4326,另外不要看英文文档,很久没维护了,看这个:https://gotrackit.readthedocs.io/en/latest/index.html |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
运行代码如下:# 1. 从gotrackit导入相关模块Net, MapMatch
import pandas as pd
import geopandas as gpd
from gotrackit.map.Net import Net
from gotrackit.MapMatch import MapMatch
if name == 'main':
报错如下:Traceback (most recent call last):
File "C:\Users\Sha mofei\PycharmProjects\pythonProject\数据读取\地图匹配.py", line 19, in
my_net = Net(link_gdf=link,
^^^^^^^^^^^^^^^^^^
File "C:\Users\Sha mofei\AppData\Roaming\Python\Python312\site-packages\gotrackit\WrapsFunc.py", line 13, in inner
res = f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "C:\Users\Sha mofei\AppData\Roaming\Python\Python312\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\Sha mofei\AppData\Roaming\Python\Python312\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\Sha mofei\AppData\Roaming\Python\Python312\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]
Process finished with exit code 1
Beta Was this translation helpful? Give feedback.
All reactions