Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] OD matrix issues

Thank you very much for reporting this. There was a bug in the xml-file validation with regard to the format of the time values (https://github.com/eclipse/sumo/issues/11554)
Any one of the following will fix the problem on your end:
- update the 'sumo/data/xsd/datamode_file.xsd'  file to this version: https://raw.githubusercontent.com/eclipse/sumo/main/data/xsd/datamode_file.xsd
- change the 'end' time values to seconds (i.e. 3600)
- disable xml-validation https://sumo.dlr.de/docs/FAQ.html#whats_the_deal_with_schema_resolution_warnings_xsd_errors

regards,
Jakob

Am Mi., 7. Sept. 2022 um 23:02 Uhr schrieb Liu, Hao <hliu@xxxxxxx>:

Thanks, Jakob. I updated the version but got the new error message “Error: invalid character encountered In file 'mp.od' At line/column 3/46.”. I used the tazRelations file copied from SUMO website with modified taz ids. I am attaching both the taz file and mp.od here. Thank you for your help.

 

Sincerely,

Hao

 

From: sumo-user <sumo-user-bounces@xxxxxxxxxxx> On Behalf Of Jakob Erdmann
Sent: Wednesday, September 7, 2022 2:09 AM
To: Sumo project User discussions <sumo-user@xxxxxxxxxxx>
Subject: Re: [sumo-user] OD matrix issues

 

It seems you are using an old version of SUMO (support for that option was added in version 1.11.0 and the latest release is 1.14.1). See https://sumo.dlr.de/docs/Downloads.php

 

Am Mi., 7. Sept. 2022 um 05:16 Uhr schrieb Liu, Hao <hliu@xxxxxxx>:

Hi Jakob,

 

Thank you very much for your help. For my first question, I changed the option to --tazrelation-files, but I got the error message “Error: On processing option '--tazrelation-files=mp.od': No option with the name 'tazrelation-files' exists. Error: Could not parse commandline options. Quitting (on error).” Do you know the reason of this error? The command I used is od2trips --taz-files=mp.taz.xml --tazrelation-files=mp.od --output-file=mp.odtrips.xml. Thanks for your time.

 

Best,

Hao

 

From: sumo-user <sumo-user-bounces@xxxxxxxxxxx> On Behalf Of Jakob Erdmann
Sent: Tuesday, September 6, 2022 1:59 PM
To: Sumo project User discussions <sumo-user@xxxxxxxxxxx>
Subject: Re: [sumo-user] OD matrix issues

 

1. use option --tazrelation-files rather than option --od-matrix-files for loading the tazRelations

2. no. The O-format only supports a single time slice per file. In contrast, the tazRelation format supports multiple intervals.

 

regards,

Jakob

 

Am Di., 6. Sept. 2022 um 19:18 Uhr schrieb Liu, Hao <hliu@xxxxxxx>:

Hi All,

 

I am trying to use OD matrix to generate trips and routes in SUMO. I have two questions:

 

  1. I firstly used the tazRelation format for the OD matrix. When I ran od2trips, I got the error message “'mp.od' uses an unknown matrix type '<data xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/datamode_file.xsd">'. I am attaching my taz file, od file here.
  2. I tried the O-format file, and it works. My question is that is it able to define multiple OD matrices for multiple time intervals in a single O-format file?

 

I very much appreciate your help in advance!

 

Best,

Hao

 

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top