AequilibraE / qaequilibrae

Free QGIS add-on for transportation modeling
https://www.aequilibrae.com/qgis/latest/
Other
75 stars 24 forks source link

Fix matrix loading from open layer #286

Closed r-akemii closed 8 months ago

r-akemii commented 8 months ago

Describe the bug Importing matrices from open layer is working however, there is an unexpected behavior. When we load a matrix, it appears to have two cores instead of one, and when updating the table with project matrices, it displays a "binary" empty name.

To Reproduce I'm using Sioux Falls test data available in QAequilibraE. Steps to reproduce the behavior:

  1. Load _SiouxFallsod open layer
  2. Data > Import Matrices
  3. Configure the fields with layer data and press load
  4. Save the matrix
  5. Data > Display project data > press Update matrix table

Expected behavior I expect to see only one matrix core, and the matrix to be uploaded in the project with a name rather than b''.

Screenshots image (should be only one name/core)

image (last matrix uploaded should have a name better than b'')

Desktop: