Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] [EXT] AW: Changing rail to be bidirectional using netconvert
  • From: Hector A Martinez <hmartinez@xxxxxxxxx>
  • Date: Thu, 18 Jan 2024 16:57:58 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mitre.org; dmarc=pass action=none header.from=mitre.org; dkim=pass header.d=mitre.org; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=c37O/YoApQ6bfSlrVM+gmQuyC2GK0cQ4g0g5miBDdmA=; b=BPhXlCtjr/sKyReoLE86QZyKAT+q425EBNB6htvCWJknPlP/3Kv111l6FK3nO7ShDDmERoq1QbUjCz/75/kBV8X4fTKxbA9QI2aPO5FiyiOiyuw+av/412t6KuEEhG/ps1c+zM4mF3k1SwDSy8JI2vlCH+NixuyCe0iujYfSMTchn+P+QFr4j9yLDZFgQo8OZCc6x9nLQPRCY1pbb3noUJZHl7/mGJmmskZAC4M4s3+jiusbs4/oY0meLnARdIdlVmJ83SuupYl4oCiRDH7lmnsXFm+X+znU22xoLObw5v+eEzOjQweBz5Lt9zfz00YdX2LuwM9oTSj5RiGk7R+cGA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lJDQkCjcavwGRHB1upXu68ujOFcsTyLuHEaQPTpIzE+E0AaamGhZvzM7K/fqJDs37sWmo+lsEGdnsYbgcnj2ENrwnqLLJE8BPG6LAHBbTAgaI/meQbN/wn+1ZDoxOlWpYcRioA1sU6gVNsDRKEvdKsUhajoSAGoHu2QdPLsrxx3uoAEca2fp7iQTawbCm6otXs69scb3mecESic75FNfiTqRj3sPStajonBv4SacFYFsLoXVLd5RVIVknFS6Rkfgij/dMbH0cZ3j3o8l4rlSYvH2MfYeifI/0QsXfTbfA5QMnmjz95+tXCmijFZVWAoyvWWEOS7xINKbhmdsYBQzQw==
  • Delivered-to: sumo-user@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/sumo-user/>
  • List-help: <mailto:sumo-user-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHaSi99RYbPsOWMDU6DxrSKh+eCIQ==
  • Thread-topic: [sumo-user] [EXT] AW: Changing rail to be bidirectional using netconvert

Mirko,

 

Never mind this question below.

 

I identified the problem with my script.  I was running netconvert from its bin location and of course it wasn’t letting the system save the new file in that location.  I fixed it and I am up and running again.  Will let you know if I bump into any issues with the new file.

 

Thanks,

 

--H

 

From: sumo-user <sumo-user-bounces@xxxxxxxxxxx> On Behalf Of Hector A Martinez via sumo-user
Sent: Thursday, January 18, 2024 11:42 AM
To: Mirko Barthauer <m.barthauer@xxxxxxxxxxx>; Sumo project User discussions <sumo-user@xxxxxxxxxxx>
Cc: Hector A Martinez <hmartinez@xxxxxxxxx>
Subject: Re: [sumo-user] [EXT] AW: Changing rail to be bidirectional using netconvert

 

Thank you Mirko! I think this might do the trick but I am getting this error when I run it on windows command line: Error: Could not build output file 'net. net. xml' (Permission denied). Quitting (on error). How do I point the output file location

Thank you Mirko!

 

I think this might do the trick but I am getting this error when I run it on windows command line:

 

Error: Could not build output file 'net.net.xml' (Permission denied).

Quitting (on error).

 

How do I point the output file location to a user location so that I doesn’t need elevated permissions?

 

Thanks,

 

--Hector

 

From: Mirko Barthauer <m.barthauer@xxxxxxxxxxx>
Sent: Thursday, January 18, 2024 3:20 AM
To: Sumo project User discussions <sumo-user@xxxxxxxxxxx>
Cc: Hector A Martinez <hmartinez@xxxxxxxxx>
Subject: [EXT] AW: [sumo-user] Changing rail to be bidirectional using netconvert

 

Dear Hector, maybe it is not explained clearly enough in the documentation. The option --railway. topology. all-bidi. input-file can be used to restrict the set of rail edges you want to make bidirectional. This means the required file is a selection

 

Dear Hector,

 

maybe it is not explained clearly enough in the documentation. The option --railway.topology.all-bidi.input-file can be used to restrict the set of rail edges you want to make bidirectional. This means the required file is a selection file you can generate with netedit (select edges and then choose "Save" from the select frame/mode).

 

if you want to make all rail edges bidirectional, just call

 

netconvert --railway.topology.all-bidi true -s C:\pathtofile\test_osm_in.net.xml.gz

If you want only a subset of edges to be bidirectional, call

 

netconvert --railway.topology.all-bidi.input-file selection.txt  -s C:\pathtofile\test_osm_in.net.xml.gz

 

Best regards

Mirko

 

 

 

-----Original-Nachricht-----

Betreff: [sumo-user] Changing rail to be bidirectional using netconvert

Datum: 2024-01-17T20:50:48+0100

Von: "Hector A Martinez via sumo-user" <sumo-user@xxxxxxxxxxx>

An: "sumo-user@xxxxxxxxxxx" <sumo-user@xxxxxxxxxxx>

 

 

 

Sumo team,

 

I am trying to convert all of my rail network to be bidirectional using netconvert without affecting my roadway network. This is for commodity/container movement, not people movement. I am using a file I generated using OSM wizard.

 

I used this script:

netconvert --railway.topology.all-bidi.input-file C:\pathtofile\test_osm_in.net.xml.gz

 

This is the error I get.

 

Error: No nodes loaded.

Quitting (on error).

 

I recognize that the network file is a .gz file but both netedit and sumo open the network file as is and it has everything to include the nodes. Netedit crashes on me all the time while I am making changes to the file so I need to do this rail changes quicker using netconvert. I welcome any advice that will point me in the right direction.  Thanks,

 

--Hector

 

 

From: Mirko Barthauer <m.barthauer@xxxxxxxxxxx>
Sent: Friday, January 12, 2024 3:50 AM
To: Hector A Martinez <hmartinez@xxxxxxxxx>
Subject: AW: [EXT] AW: Adding Containers using TraCI

 

Hi Hector, you can try to process your network with netconvert using the PlainXML format: convert your network to PlainXML analyse your network with a script and write the missing edges in a new file in PlainXML format convert back to the normal

 

Hi Hector,

 

you can try to process your network with netconvert using the PlainXML format:

  • convert your network to PlainXML
  • analyse your network with a script and write the missing edges in a new file in PlainXML format
  • convert back to the normal SUMO format with netconvert by supplying the PlainXML files using the respective input options (-n,-e,-x,-i)

Please write to the mailing list next time, so that everybody can answer the question (or at least learn from it).

 

Best regards

Mirko

 

 

 




Back to the top