Thank you. It works. From: sumo-user <[email protected]> On Behalf Of Jakob Erdmann Sent: Thursday, September 8, 2022 3:30 AM To: Sumo project User discussions <[email protected]> Subject: 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<https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feclipse%2Fsumo%2Fissues%2F11554&data=05%7C01%7Chliu%40psu.edu%7C93f4861f56804b7388fd08da916c098d%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C637982191336241078%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=FKrjRhbG8QkQk5VIU%2FTfQSF3cffrutr6xUQqumtA%2Flo%3D&reserved=0>) 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<https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fraw.githubusercontent.com%2Feclipse%2Fsumo%2Fmain%2Fdata%2Fxsd%2Fdatamode_file.xsd&data=05%7C01%7Chliu%40psu.edu%7C93f4861f56804b7388fd08da916c098d%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C637982191336241078%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=cq1k4xWK0RjPfedVuDTb79O%2BaC%2BJSQj23bpdQACmyqU%3D&reserved=0> - 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<https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsumo.dlr.de%2Fdocs%2FFAQ.html%23whats_the_deal_with_schema_resolution_warnings_xsd_errors&data=05%7C01%7Chliu%40psu.edu%7C93f4861f56804b7388fd08da916c098d%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C637982191336241078%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=yXKTLKzQQtnaILnInweHRkgLEW5ED9%2F5nWZA38SpREI%3D&reserved=0> regards, Jakob Am Mi., 7. Sept. 2022 um 23:02 Uhr schrieb Liu, Hao <[email protected]<mailto:[email protected]>>: 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 <[email protected]<mailto:[email protected]>> On Behalf Of Jakob Erdmann Sent: Wednesday, September 7, 2022 2:09 AM To: Sumo project User discussions <[email protected]<mailto:[email protected]>> 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<https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsumo.dlr.de%2Fdocs%2FDownloads.php&data=05%7C01%7Chliu%40psu.edu%7C93f4861f56804b7388fd08da916c098d%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C637982191336241078%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=B3N%2FNxp2rBqQ4xuhB8soSrXBWBC6qVzOoDJq1Vxv5GI%3D&reserved=0> Am Mi., 7. Sept. 2022 um 05:16 Uhr schrieb Liu, Hao <[email protected]<mailto:[email protected]>>: 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 <[email protected]<mailto:[email protected]>> On Behalf Of Jakob Erdmann Sent: Tuesday, September 6, 2022 1:59 PM To: Sumo project User discussions <[email protected]<mailto:[email protected]>> 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 <[email protected]<mailto:[email protected]>>: 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<https://nam10.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance&data=05%7C01%7Chliu%40psu.edu%7C93f4861f56804b7388fd08da916c098d%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C637982191336241078%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=0bRKq2Z2T5K0CcUki4CdorIFffMRZBs1k6m9gRxr%2B7E%3D&reserved=0> xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/datamode_file.xsd<https://nam10.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsumo.dlr.de%2Fxsd%2Fdatamode_file.xsd&data=05%7C01%7Chliu%40psu.edu%7C93f4861f56804b7388fd08da916c098d%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C637982191336241078%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=fPOkpJF4TwuKBZvYd%2F9NV34UaSzHEzuy%2F5b4ym1Hz64%3D&reserved=0>">'. 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 [email protected]<mailto:[email protected]> To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user<https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.eclipse.org%2Fmailman%2Flistinfo%2Fsumo-user&data=05%7C01%7Chliu%40psu.edu%7C93f4861f56804b7388fd08da916c098d%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C637982191336241078%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=cBRoSEXlEFAHFKULksIFuptrccncug0wpSckhzWxv3Q%3D&reserved=0> _______________________________________________ sumo-user mailing list [email protected]<mailto:[email protected]> To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user<https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.eclipse.org%2Fmailman%2Flistinfo%2Fsumo-user&data=05%7C01%7Chliu%40psu.edu%7C93f4861f56804b7388fd08da916c098d%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C637982191336241078%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=cBRoSEXlEFAHFKULksIFuptrccncug0wpSckhzWxv3Q%3D&reserved=0> _______________________________________________ sumo-user mailing list [email protected]<mailto:[email protected]> To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user<https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.eclipse.org%2Fmailman%2Flistinfo%2Fsumo-user&data=05%7C01%7Chliu%40psu.edu%7C93f4861f56804b7388fd08da916c098d%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C637982191336241078%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=cBRoSEXlEFAHFKULksIFuptrccncug0wpSckhzWxv3Q%3D&reserved=0>
_______________________________________________ sumo-user mailing list [email protected] To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
