root676 / QNEAT3

QNEAT3 - Qgis Network Analysis Toolbox 3
GNU General Public License v3.0
64 stars 13 forks source link

Crash with unknow error when try run shortest path #9

Closed FranklinJS closed 5 years ago

FranklinJS commented 5 years ago

Trying run the shortest path algorithm results:

Processing algorithm… Algoritmo 'Shortest path (point to point)' iniciando… Entrada de parâmetros: { 'DEFAULT_DIRECTION' : 2, 'DEFAULT_SPEED' : 5, 'DIRECTION_FIELD' : None, 'END_POINT' : '326661.9873878573,7954208.542708622 [EPSG:31982]', 'INPUT' : 'LineString?crs=EPSG:31982&field=id:long(10)&field=Descricao:string(80)&field=Tipo:string(100)&field=ID1:long(10)&uid={c5a16068-757f-497e-bf65-aabf90cb7b13}', 'OUTPUT' : 'memory:', 'SPEED_FIELD' : None, 'START_POINT' : '322257.67780760466,7957665.089467809 [EPSG:31982]', 'STRATEGY' : 0, 'TOLERANCE' : 0, 'VALUE_BACKWARD' : '', 'VALUE_BOTH' : '', 'VALUE_FORWARD' : '' }

[QNEAT3Algorithm] This is a QNEAT3 Algorithm: 'Shortest path (point to point)' [QNEAT3Algorithm] Initializing Variables [QNEAT3Algorithm] Building Graph [QNEAT3Network][init] Setting up parameters [QNEAT3Network][init] Setting up network direction parameters [QNEAT3Network][init] Setting up analysis points [QNEAT3Network][init] Setting analysis strategy: 0 [QNEAT3Network][init] Start tying analysis points to the graph and building it. [QNEAT3Network][init] This is a compute intensive task and may take some time depending on network size [QNEAT3Network][init] Start Time: :2018-10-09 20:54:29 [QNEAT3Network][init] Building... Traceback (most recent call last): File "C:/Users/Franklin/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QNEAT3\algs\ShortestPathBetweenPoints.py", line 205, in processAlgorithm net = Qneat3Network(network, input_qgspointxy_list, strategy, directionFieldName, forwardValue, backwardValue, bothValue, defaultDirection, analysisCrs, speedFieldName, defaultSpeed, tolerance, feedback) File "C:/Users/Franklin/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QNEAT3\Qneat3Framework.py", line 127, in init self.list_tiedPoints = self.director.makeGraph(self.builder, self.list_input_points, self.feedback) Exception: unknown

A execução falhou após 0.05 segundos

Carregando camada resultante Algoritmo 'Shortest path (point to point)' finalizado

FranklinJS commented 5 years ago

qgisversion

root676 commented 5 years ago

Hi, I could not reproduce the error with my installation. Could you provide your network dataset for testing?

rgnixon commented 5 years ago

I am getting a similar error:

Algorithm 'OD Matrix from Layers as Table (m:n)' starting… Input parameters: { 'DEFAULT_DIRECTION' : 2, 'DEFAULT_SPEED' : 5, 'DIRECTION_FIELD' : None, 'FROM_ID_FIELD' : 'centroid_row', 'FROM_POINT_LAYER' : 'D:\tempwork\TESTS\test_polygon_centroids.TAB', 'INPUT' : 'D:\tempwork\TESTS\roads_nztm_ni.TAB', 'OUTPUT' : 'D:/tempwork/TESTS/output.tab', 'SPEED_FIELD' : None, 'STRATEGY' : 0, 'TOLERANCE' : 0, 'TO_ID_FIELD' : 'row', 'TO_POINT_LAYER' : 'D:\tempwork\TESTS\Test_Destinations_ManWang.TAB', 'VALUE_BACKWARD' : '', 'VALUE_BOTH' : '', 'VALUE_FORWARD' : '' } [QNEAT3Algorithm] This is a QNEAT3 Algorithm: 'OD Matrix from Layers as Table (m:n)' [QNEAT3Algorithm] Building Graph... [QNEAT3Network][__init__] Setting up parameters [QNEAT3Network][__init__] Setting up network direction parameters [QNEAT3Network][__init__] Setting up analysis points [QNEAT3Network][__init__] Setting analysis strategy: 0 [QNEAT3Network][__init__] Start tying analysis points to the graph and building it. [QNEAT3Network][__init__] This is a compute intensive task and may take some time depending on network size [QNEAT3Network][__init__] Start Time: :2018-12-06 16:35:35 [QNEAT3Network][__init__] Building... Traceback (most recent call last): File "C:/Users/ross/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QNEAT3\algs\OdMatrixFromLayersAsTable.py", line 220, in processAlgorithm net = Qneat3Network(network, merged_coords, strategy, directionFieldName, forwardValue, backwardValue, bothValue, defaultDirection, analysisCrs, speedFieldName, defaultSpeed, tolerance, feedback) File "C:/Users/ross/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QNEAT3\Qneat3Framework.py", line 127, in __init__ self.list_tiedPoints = self.director.makeGraph(self.builder, self.list_input_points, self.feedback) Exception: unknown Execution failed after 73.04 seconds

Tested on QGIS 3.2.0 which worked before October, now produces the above error using the inputs which previously worked. Tested on QGIS 3.4.2 which also produces the above error.

The only cause I can think of is I installed the Windows 10 version 1809 in October. I will try on another computer still running Windows 10 version 1803. [Update: Also fails on QGIS 3.2.0 on Windows 10 version 1803].

rgnixon commented 5 years ago

Have discovered that the error I'm getting is related to the number of nodes in my network layer. I have had success by 'thinning' a smaller network layer. Will now try to thin the large network layer that I need to use.

cormundo commented 3 years ago

I am getting the same error - how can I run QNEAT3 with large complex networks?