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

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

Back to the top