Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Routes from counting data

Dear Fereshte,

 

I get a location tag with projParameter attribute when converting to a SUMO network in v.1.18.0. Not sure what caused the problem on your side?

 

Best regards

Mirko

 

On Tue, Sep 12, 2023 at 4:12 PM fereshte jafari <j.fereshte1993@xxxxxxxxx> wrote:
Dear Mirko,
 
I am using the latest version of sumo: 
 
#define VERSION_STRING "v1_18_0+0000-03ecfdea036"

Please find enclosed the MATsim file. And the command that I used to convert the network is below:
 
netconvert --matsim Matsim.network.xml -o mySUMOnetwork.net.xml  --xml-validation never
 
Thanks for your time and guidance.
 
Regards,
Fereshteh

On Tue, Sep 12, 2023 at 2:45 PM Mirko Barthauer <m.barthauer@xxxxxxxxxxx> wrote:

Dear Feresteh,

 

did you use the latest SUMO version 1.18.0 or an older one? If you used an older one, could you please check if the projParameter attribute is still missing when converting the MATSim network to SUMO in v. 1.18.0? And if you already use the latest version, could you provide the MATsim file together with the netconvert command to let us check?

 

Best regards

Mirko

 

 

 

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

Betreff: Re: [sumo-user] Routes from counting data

Datum: 2023-09-12T10:39:38+0200

Von: "fereshte jafari" <j.fereshte1993@xxxxxxxxx>

An: "Mirko Barthauer" <m.barthauer@xxxxxxxxxxx>

 

 

 

Dear Mirko,
 
Thanks for your reply.
Actually, my network was edited by Matsim first but then I converted it to a SUMO network using the "netconvert" command.
Yes, there is a "location" tag in my network file. Please see the image below. But it does not contain  the "projParameter" attribute.
 
Screenshot 2023-09-12 at 09.36.57.png
 
Regards,
Fereshteh

On Mon, Sep 11, 2023 at 3:00 PM Mirko Barthauer <m.barthauer@xxxxxxxxxxx> wrote:

This looks like your network file does not contain a location tag (which is obligatory by nowadays standards and should be written when generated with netedit/netconvert).

  • Is there a location tag?
  • Does it contain a projParameter attribute?
  • If not, how did you create the network? Did you edit it outside of netedit/netconvert?

Best regards

Mirko

 

 

 

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

Betreff: Re: [sumo-user] Routes from counting data

Datum: 2023-09-04T12:11:24+0200

Von: "fereshte jafari via sumo-user" <sumo-user@xxxxxxxxxxx>

 

 

 

Thanks for your guidance.
I followed Jan's suggestion but faced the below error message. Any ideas?
 
 

Traceback (most recent call last):

  File "C:\Program Files (x86)\Eclipse\Sumo\tools\detector\mapDetectors.py", line 110, in <module>

    main()

  File "C:\Program Files (x86)\Eclipse\Sumo\tools\detector\mapDetectors.py", line 88, in main

    x, y = net.convertLonLat2XY(lon, lat)

  File "C:\Program Files (x86)\Eclipse\Sumo\tools\sumolib\net\__init__.py", line 468, in convertLonLat2XY

    x, y = self.getGeoProj()(lon, lat)

  File "C:\Program Files (x86)\Eclipse\Sumo\tools\sumolib\net\__init__.py", line 446, in getGeoProj

    if not self.hasGeoProj():

  File "C:\Program Files (x86)\Eclipse\Sumo\tools\sumolib\net\__init__.py", line 442, in hasGeoProj

    projString = self._location["projParameter"]

KeyError: 'projParameter'

 
Thanks in advance.
 
Regards,
Fereshteh


On Mon, Jul 17, 2023 at 8:08 AM Mirko Barthauer <m.barthauer@xxxxxxxxxxx> wrote:

Please just follow the suggestion of Jan to use the script loacted at SUMO_HOME/tools/detector/mapDetectors.py . It uses the general process I have outlined before.

 

Best regards

Mirko

 

 

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

Betreff: Re: [sumo-user] Routes from counting data

Datum: 2023-07-14T16:04:28+0200

Von: "fereshte jafari via sumo-user" <sumo-user@xxxxxxxxxxx>

An: "Sumo project User discussions" <sumo-user@xxxxxxxxxxx>

 

 

 

Dear Mirko,
 
Thanks for your response.
My network is a very large network with a high number of detectors. Is it possible to obtain the lane and position of all detectors at once instead of one by one?

Regards,
Fereshteh


On Thu, Jul 13, 2023 at 3:32 PM fereshte jafari <j.fereshte1993@xxxxxxxxx> wrote:
Hello!
 
I have a question regarding the detector file.
As it is mentioned in https://sumo.dlr.de/docs/Demand/Routes_from_Observation_Points.html, SUMO requires the position of the detector on the lane to be expressed in meters. Specifically, the position should fall within the range of -1*lane's length to the lane's length. What I have in my database of detectors is the "latitude" and "longitude" of detectors. I wanted to know whether SUMO can read the "latitude" and "longitude" of detectors and locate the detectors on the network or not. If yes, could you please guide me on how to insert this information in the detector file?
 
Thanks in advance.
 
--
Sincerely,
Fereshteh Jafari Shahdani
PhD candidate, Dep. of Civil Engineering
ISISE - University of Minho

 
--
Sincerely,
Fereshteh Jafari Shahdani
PhD candidate, Dep. of Civil Engineering
ISISE - University of Minho

 
--
Sincerely,
Fereshteh Jafari Shahdani
PhD candidate, Dep. of Civil Engineering
ISISE - University of Minho


--
Sincerely,
Fereshteh Jafari Shahdani
PhD candidate, Dep. of Civil Engineering
ISISE - University of Minho

 
--
Sincerely,
Fereshteh Jafari Shahdani
PhD candidate, Dep. of Civil Engineering
ISISE - University of Minho

 
--
Sincerely,
Fereshteh Jafari Shahdani
PhD candidate, Dep. of Civil Engineering
ISISE - University of Minho


Back to the top