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" <[email protected]>
 
 
 
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 <[email protected]
<mailto:[email protected]> > 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" <[email protected]
  <mailto:[email protected]> >
  An: "Sumo project User discussions" <[email protected]
  <mailto:[email protected]> >
   
   
   
  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 <
  [email protected] <mailto:[email protected]> > 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

_______________________________________________
sumo-user mailing list
[email protected]
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to