Hello!
I was trying to generate the detectors file using the below command because I have the longitude and latitude of detectors in my traffic counts database instead of the position of the detectors on the lane in meters.
<SUMO_HOME>/tools/detector/mapDetectors.py -n net.net.xml -d det.csv -o det.add.xml
The det.csv file includes 3 columns of id, longitude, and latitude of the detectors as explained below link:
But I faced this error message:
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'
Any guidance on solving this problem would be very appreciated.
-- Sincerely,
Fereshteh Jafari Shahdani
PhD candidate, Dep. of Civil Engineering
ISISE - University of Minho