Re: [sumo-user] Adding PT to the network

2024-05-15 Thread fereshte jafari via sumo-user
; Please see below the command I used:
>>>>
>>>> D:\Users\Fereshteh.V6\UK\Traffic Network\downloaded from Geofabrik.
>>>> mine\Final Tyne&Wear>python "C:\Program Files
>>>> (x86)\Eclipse\2023.10\tools\import\gtfs\gtfs2pt.py" -n roads4.net.xml
>>>> --gtfs gtfs20210423.zip --date 20210423 --modes bus --vtype-output
>>>> pt_vtypes.xml
>>>>
>>>>
>>>> And here is the results:
>>>>
>>>> C:\Program Files (x86)\Eclipse\Sumo\tools\sumolib\__init__.py:184:
>>>> UserWarning: sumolib.open is deprecated, due to the name clash and strange
>>>> signature! Use sumolib.miscutils.openz instead.
>>>>   warnings.warn("sumolib.open is deprecated, due to the name clash and
>>>> strange signature! "
>>>> function import_gtfs called at Wed, 06 Mar 2024 12:38:53 +
>>>> function import_gtfs finished after 10.640317 seconds
>>>> One or more coordinates are negative, some applications might need
>>>> strictly positive values. To avoid this use the option --shift.
>>>> Warning: Found sharp turn with radius 7.94 at the start of edge
>>>> '-23537059'.
>>>> Warning: Found sharp turn with radius 8.65 at the end of edge
>>>> '-23537059'.
>>>> Warning: Found angle of 147.46 degrees at edge '403520189', segment 1.
>>>> Warning: Shape for junction '5569' has distance 22.59 to its given
>>>> position.
>>>> Warning: 2 total messages of type: Found angle of % degrees at edge
>>>> '%', segment %.
>>>> Warning: 7 total messages of type: Found sharp turn with radius % at
>>>> the end of edge '%'.
>>>> Warning: 4 total messages of type: Found sharp turn with radius % at
>>>> the start of edge '%'.
>>>> Warning: 15 total messages of type: Shape for junction '%' has distance
>>>> % to its given position.
>>>> Success.
>>>> Warning! No mapping library found, falling back to tracemapper.
>>>> Warning! No net resources\gtfs\bus.net.xml
>>>>
>>>> Regards,
>>>> Fereshteh
>>>>
>>>> On Tue, Mar 5, 2024 at 2:04 PM Mirko Barthauer 
>>>> wrote:
>>>>
>>>>> The empty output files don't help. Did you get warnings like "Warning!
>>>>> No GTFS data found for the given modes" or "Warning! No GTFS data found 
>>>>> for
>>>>> the given date"?
>>>>>
>>>>>
>>>>>
>>>>> Best regards
>>>>>
>>>>> Mirko
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> -Original-Nachricht-
>>>>>
>>>>> Betreff: [sumo-user] Adding PT to the network
>>>>>
>>>>> Datum: 2024-03-05T12:26:15+0100
>>>>>
>>>>> Von: "fereshte jafari via sumo-user" 
>>>>>
>>>>> An: "Sumo project User discussions" 
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> I want to add the PTstops, routes, and schedules to my network using
>>>>> GTFS data and then run a simulation for passenger and bus vehicles. I am
>>>>> using the "Routes from shortest path" in this documentation:
>>>>>
>>>>> https://sumo.dlr.de/docs/Tutorials/GTFS.html#routes_from_shortest_path
>>>>>
>>>>> I used the below command:
>>>>> python "C:\Program Files
>>>>> (x86)\Eclipse\2023.10\tools\import\gtfs\gtfs2pt.py" -n ne2.net.xml --gtfs
>>>>> gtfs20210423.zip --date 20210423 --modes bus --vtype-output pt_vtypes.xml
>>>>>
>>>>> The gtfs_pt_stops.add, gtfs_pt_vehicles.add and pt_vtypes files are
>>>>> created but they are empty! you can see them in the attachment. Could you
>>>>> please tell me what I did wrong?
>>>>>
>>>>> One more question, instead of "shapes.txt" file, I have "agency.txt"
>>>>> and "links.txt" and "transfers.txt" file. Can I use each of these files
>>>>> instead of the shapes.txt file?
>>>>>
>>>>>
>>>>> --
>>>>> *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*
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


[sumo-user] GTFS or dfrouter?

2024-04-24 Thread fereshte jafari via sumo-user
Hello there!

I want to simulate both passenger and bus mobilities. As far as I
understood from sumo documentation, I have to proceed like below:
1- Network preparation
2- Locating the bus stops and defining their schedules (adding PT)
3- Generating and assigning traffic demand to the network

What I have now are:
1- Transportation network.xml file which includes allowed modes on each
edge (passenger/bus&passenger) in addition to other required information
(except bus stops)
2- Bus stop shp.file
3- GTFS.zip file
4- Detectors.xml file like what is mentioned here
https://sumo.dlr.de/docs/Demand/Routes_from_Observation_Points.html#computing_detector_types
5- A csv file including detector,time, qPKW, vPKW, qLKW, vLKW to compute
flows, according to this documentation:
https://sumo.dlr.de/docs/Demand/Routes_from_Observation_Points.html#computing_flows

But I got confused on continuing with "gtfstopt.py" or "dfrouter" as the
next step. "gtfstopt.py" will generate bus stops and routes. On the other
hand, I have traffic counts from detectors, and if I am not
misunderstanding, "dfrouter" will also generate vehicles and their routes
for both passengers and buses.
I would be very thankful if you let me know your idea and guide me on what
to do next.

-- 
*Sincerely,*
*Fereshteh Jafari Shahdani*
*PhD candidate, Dep. of Civil Engineering*
*ISISE - University of Minho*
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Adding PT to the network

2024-03-11 Thread fereshte jafari via sumo-user
Dear Mirko,
I see "bus" as an allowed mode in my network but still face those warnings
with empty output files!
Any ideas?

Regards,
Fereshteh



On Wed, Mar 6, 2024 at 3:17 PM fereshte jafari 
wrote:

> Please see enclosed my typefile. I just defined the disallow option and
> since the bus is not in there, I thought the bus would be considered as an
> allowed mode all over the network. Am I misunderstood?
>
> Regards,
> Fereshteh
>
> On Wed, Mar 6, 2024 at 2:25 PM Mirko Barthauer 
> wrote:
>
>>
>>
>> Dear Feresteh,
>>
>>
>>
>> do you allow busses in your network (vehicle class bus)? If not, then the
>> public transport data cannot be mapped on any edge...
>>
>>
>>
>> Best regards
>>
>> Mirko
>>
>>
>>
>>
>>
>>
>>
>> -Original-Nachricht-
>>
>> Betreff: Re: [sumo-user] Adding PT to the network
>>
>> Datum: 2024-03-06T13:44:25+0100
>>
>> Von: "fereshte jafari" 
>>
>> An: "Mirko Barthauer" 
>>
>>
>>
>>
>>
>>
>> Dear Mirko,
>>
>> Please see below the command I used:
>>
>> D:\Users\Fereshteh.V6\UK\Traffic Network\downloaded from Geofabrik.
>> mine\Final Tyne&Wear>python "C:\Program Files
>> (x86)\Eclipse\2023.10\tools\import\gtfs\gtfs2pt.py" -n roads4.net.xml
>> --gtfs gtfs20210423.zip --date 20210423 --modes bus --vtype-output
>> pt_vtypes.xml
>>
>>
>> And here is the results:
>>
>> C:\Program Files (x86)\Eclipse\Sumo\tools\sumolib\__init__.py:184:
>> UserWarning: sumolib.open is deprecated, due to the name clash and strange
>> signature! Use sumolib.miscutils.openz instead.
>>   warnings.warn("sumolib.open is deprecated, due to the name clash and
>> strange signature! "
>> function import_gtfs called at Wed, 06 Mar 2024 12:38:53 +
>> function import_gtfs finished after 10.640317 seconds
>> One or more coordinates are negative, some applications might need
>> strictly positive values. To avoid this use the option --shift.
>> Warning: Found sharp turn with radius 7.94 at the start of edge
>> '-23537059'.
>> Warning: Found sharp turn with radius 8.65 at the end of edge '-23537059'.
>> Warning: Found angle of 147.46 degrees at edge '403520189', segment 1.
>> Warning: Shape for junction '5569' has distance 22.59 to its given
>> position.
>> Warning: 2 total messages of type: Found angle of % degrees at edge '%',
>> segment %.
>> Warning: 7 total messages of type: Found sharp turn with radius % at the
>> end of edge '%'.
>> Warning: 4 total messages of type: Found sharp turn with radius % at the
>> start of edge '%'.
>> Warning: 15 total messages of type: Shape for junction '%' has distance %
>> to its given position.
>> Success.
>> Warning! No mapping library found, falling back to tracemapper.
>> Warning! No net resources\gtfs\bus.net.xml
>>
>> Regards,
>> Fereshteh
>>
>> On Tue, Mar 5, 2024 at 2:04 PM Mirko Barthauer 
>> wrote:
>>
>>> The empty output files don't help. Did you get warnings like "Warning!
>>> No GTFS data found for the given modes" or "Warning! No GTFS data found for
>>> the given date"?
>>>
>>>
>>>
>>> Best regards
>>>
>>> Mirko
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> -Original-Nachricht-
>>>
>>> Betreff: [sumo-user] Adding PT to the network
>>>
>>> Datum: 2024-03-05T12:26:15+0100
>>>
>>> Von: "fereshte jafari via sumo-user" 
>>>
>>> An: "Sumo project User discussions" 
>>>
>>>
>>>
>>>
>>>
>>>
>>> I want to add the PTstops, routes, and schedules to my network using
>>> GTFS data and then run a simulation for passenger and bus vehicles. I am
>>> using the "Routes from shortest path" in this documentation:
>>>   https://sumo.dlr.de/docs/Tutorials/GTFS.html#routes_from_shortest_path
>>>
>>> I used the below command:
>>> python "C:\Program Files
>>> (x86)\Eclipse\2023.10\tools\import\gtfs\gtfs2pt.py" -n ne2.net.xml --gtfs
>>> gtfs20210423.zip --date 20210423 --modes bus --vtype-output pt_vtypes.xml
>>>
>>> The gtfs_pt_stops.add, gtfs_pt_vehicles.add and pt_vtypes files are
>>> created but they are empty! you can see them in the attachment. Could you
>>> please tell me what I did wrong?
>>>
>>> One more question, instead of "shapes.txt" file, I have "agency.txt" and
>>> "links.txt" and "transfers.txt" file. Can I use each of these files instead
>>> of the shapes.txt file?
>>>
>>>
>>> --
>>> *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*
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Resolve network warnings

2024-03-06 Thread fereshte jafari via sumo-user
Thanks for your response. What about the warnings of the roundabouts?  Do
you confirm removing this roundabout and recreating it as explained here
(Converting an intersection into a roundabout)?
https://sumo.dlr.de/docs/Netedit/neteditUsageExamples.html

warnings:
Warning: Found sharp turn with radius 7.94 at the start of edge '-23537059'.
Warning: Found sharp turn with radius 8.65 at the end of edge '-23537059'.
Warning: Found sharp turn with radius 8.26 at the start of edge
'1149894368'.
Warning: Found sharp turn with radius 7.71 at the end of edge '1149894370'.
Warning: Found sharp turn with radius 8.65 at the start of edge '23537059'.
Warning: Found sharp turn with radius 7.94 at the end of edge '23537059'.
Warning: Found sharp turn with radius 6.36 at the end of edge '859481424'.
Warning: Found sharp turn with radius 4.04 at the start of edge '893710466'.

Regards,
Fereshteh

On Wed, Mar 6, 2024 at 2:31 PM Mirko Barthauer 
wrote:

> I cannot see the connections but those messages may be normal, as by
> default netconvert <https://sumo.dlr.de/docs/netconvert.html#junctions>
> will reduce the allowed speed inside intersections depending on the
> curvature. Please look at the options *--junctions.limit-turn-speed *and
> *--junctions.limit-turn-speed.min-angle*.
>
>
>
> Best regards
>
> Mirko
>
>
>
>
>
>
>
>
>
> -Original-Nachricht-
>
> Betreff: [sumo-user] Resolve network warnings
>
> Datum: 2024-03-06T14:49:47+0100
>
> Von: "fereshte jafari via sumo-user" 
>
> An: "Sumo project User discussions" 
>
>
>
>
>
>
> Hello!
>
> I am facing many warnings in my network. Several of them related to a
> roundabout as shown in the picture below:
> [image: Screenshot 2024-03-06 at 13.36.47.png]
> I am thinking about removing this roundabout and recreating it as
> explained here (Converting an intersection into a roundabout):
> https://sumo.dlr.de/docs/Netedit/neteditUsageExamples.html But I am not
> sure if it is the best solution.
>
> Beside that, I also have the below warnings:
> Warning: Speed of straight connection '-604070588_1->-33040725_1' reduced
> by 7.28 due to turning radius of 20.06 (length=7.15, angle=36.28).
> Warning: Speed of straight connection '33040725_0->604070588_0' reduced by
> 5.53 due to turning radius of 27.30 (length=9.84, angle=36.28).
> Warning: Speed of straight connection '33040725_1->604070588_1' reduced by
> 6.14 due to turning radius of 24.65 (length=8.86, angle=36.28).
> Warning: Speed of straight connection '713933105_1->604070587_1' reduced
> by 6.08 due to turning radius of 24.89 (length=11.41, angle=42.13).
> Warning: Speed of straight connection '-604070587_0->-713933105_0' reduced
> by 7.63 due to turning radius of 18.73 (length=8.49, angle=42.13).
>
> By clicking on them it does not go to the warning place on the network and
> I have no idea on how to get rid of them.
>
> Any ideas and suggestions would be appreciated.
>
>
> --
> *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
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Adding PT to the network

2024-03-06 Thread fereshte jafari via sumo-user
Please see enclosed my typefile. I just defined the disallow option and
since the bus is not in there, I thought the bus would be considered as an
allowed mode all over the network. Am I misunderstood?

Regards,
Fereshteh

On Wed, Mar 6, 2024 at 2:25 PM Mirko Barthauer 
wrote:

>
>
> Dear Feresteh,
>
>
>
> do you allow busses in your network (vehicle class bus)? If not, then the
> public transport data cannot be mapped on any edge...
>
>
>
> Best regards
>
> Mirko
>
>
>
>
>
>
>
> -Original-Nachricht-
>
> Betreff: Re: [sumo-user] Adding PT to the network
>
> Datum: 2024-03-06T13:44:25+0100
>
> Von: "fereshte jafari" 
>
> An: "Mirko Barthauer" 
>
>
>
>
>
>
> Dear Mirko,
>
> Please see below the command I used:
>
> D:\Users\Fereshteh.V6\UK\Traffic Network\downloaded from Geofabrik.
> mine\Final Tyne&Wear>python "C:\Program Files
> (x86)\Eclipse\2023.10\tools\import\gtfs\gtfs2pt.py" -n roads4.net.xml
> --gtfs gtfs20210423.zip --date 20210423 --modes bus --vtype-output
> pt_vtypes.xml
>
>
> And here is the results:
>
> C:\Program Files (x86)\Eclipse\Sumo\tools\sumolib\__init__.py:184:
> UserWarning: sumolib.open is deprecated, due to the name clash and strange
> signature! Use sumolib.miscutils.openz instead.
>   warnings.warn("sumolib.open is deprecated, due to the name clash and
> strange signature! "
> function import_gtfs called at Wed, 06 Mar 2024 12:38:53 +
> function import_gtfs finished after 10.640317 seconds
> One or more coordinates are negative, some applications might need
> strictly positive values. To avoid this use the option --shift.
> Warning: Found sharp turn with radius 7.94 at the start of edge
> '-23537059'.
> Warning: Found sharp turn with radius 8.65 at the end of edge '-23537059'.
> Warning: Found angle of 147.46 degrees at edge '403520189', segment 1.
> Warning: Shape for junction '5569' has distance 22.59 to its given
> position.
> Warning: 2 total messages of type: Found angle of % degrees at edge '%',
> segment %.
> Warning: 7 total messages of type: Found sharp turn with radius % at the
> end of edge '%'.
> Warning: 4 total messages of type: Found sharp turn with radius % at the
> start of edge '%'.
> Warning: 15 total messages of type: Shape for junction '%' has distance %
> to its given position.
> Success.
> Warning! No mapping library found, falling back to tracemapper.
> Warning! No net resources\gtfs\bus.net.xml
>
> Regards,
> Fereshteh
>
> On Tue, Mar 5, 2024 at 2:04 PM Mirko Barthauer 
> wrote:
>
>> The empty output files don't help. Did you get warnings like "Warning! No
>> GTFS data found for the given modes" or "Warning! No GTFS data found for
>> the given date"?
>>
>>
>>
>> Best regards
>>
>> Mirko
>>
>>
>>
>>
>>
>>
>>
>> -Original-Nachricht-
>>
>> Betreff: [sumo-user] Adding PT to the network
>>
>> Datum: 2024-03-05T12:26:15+0100
>>
>> Von: "fereshte jafari via sumo-user" 
>>
>> An: "Sumo project User discussions" 
>>
>>
>>
>>
>>
>>
>> I want to add the PTstops, routes, and schedules to my network using GTFS
>> data and then run a simulation for passenger and bus vehicles. I am
>> using the "Routes from shortest path" in this documentation:
>>   https://sumo.dlr.de/docs/Tutorials/GTFS.html#routes_from_shortest_path
>>
>> I used the below command:
>> python "C:\Program Files
>> (x86)\Eclipse\2023.10\tools\import\gtfs\gtfs2pt.py" -n ne2.net.xml --gtfs
>> gtfs20210423.zip --date 20210423 --modes bus --vtype-output pt_vtypes.xml
>>
>> The gtfs_pt_stops.add, gtfs_pt_vehicles.add and pt_vtypes files are
>> created but they are empty! you can see them in the attachment. Could you
>> please tell me what I did wrong?
>>
>> One more question, instead of "shapes.txt" file, I have "agency.txt" and
>> "links.txt" and "transfers.txt" file. Can I use each of these files instead
>> of the shapes.txt file?
>>
>>
>> --
>> *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*


osmNetconvert4.typ
Description: Binary data
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Adding PT to the network

2024-03-06 Thread fereshte jafari via sumo-user
Dear Mirko,

Please see below the command I used:

D:\Users\Fereshteh.V6\UK\Traffic Network\downloaded from Geofabrik.
mine\Final Tyne&Wear>python "C:\Program Files
(x86)\Eclipse\2023.10\tools\import\gtfs\gtfs2pt.py" -n roads4.net.xml
--gtfs gtfs20210423.zip --date 20210423 --modes bus --vtype-output
pt_vtypes.xml


And here is the results:

C:\Program Files (x86)\Eclipse\Sumo\tools\sumolib\__init__.py:184:
UserWarning: sumolib.open is deprecated, due to the name clash and strange
signature! Use sumolib.miscutils.openz instead.
  warnings.warn("sumolib.open is deprecated, due to the name clash and
strange signature! "
function import_gtfs called at Wed, 06 Mar 2024 12:38:53 +
function import_gtfs finished after 10.640317 seconds
One or more coordinates are negative, some applications might need strictly
positive values. To avoid this use the option --shift.
Warning: Found sharp turn with radius 7.94 at the start of edge '-23537059'.
Warning: Found sharp turn with radius 8.65 at the end of edge '-23537059'.
Warning: Found angle of 147.46 degrees at edge '403520189', segment 1.
Warning: Shape for junction '5569' has distance 22.59 to its given position.
Warning: 2 total messages of type: Found angle of % degrees at edge '%',
segment %.
Warning: 7 total messages of type: Found sharp turn with radius % at the
end of edge '%'.
Warning: 4 total messages of type: Found sharp turn with radius % at the
start of edge '%'.
Warning: 15 total messages of type: Shape for junction '%' has distance %
to its given position.
Success.
Warning! No mapping library found, falling back to tracemapper.
Warning! No net resources\gtfs\bus.net.xml

Regards,
Fereshteh

On Tue, Mar 5, 2024 at 2:04 PM Mirko Barthauer 
wrote:

> The empty output files don't help. Did you get warnings like "Warning! No
> GTFS data found for the given modes" or "Warning! No GTFS data found for
> the given date"?
>
>
>
> Best regards
>
> Mirko
>
>
>
>
>
>
>
> -Original-Nachricht-
>
> Betreff: [sumo-user] Adding PT to the network
>
> Datum: 2024-03-05T12:26:15+0100
>
> Von: "fereshte jafari via sumo-user" 
>
> An: "Sumo project User discussions" 
>
>
>
>
>
>
> I want to add the PTstops, routes, and schedules to my network using GTFS
> data and then run a simulation for passenger and bus vehicles. I am
> using the "Routes from shortest path" in this documentation:
>   https://sumo.dlr.de/docs/Tutorials/GTFS.html#routes_from_shortest_path
>
> I used the below command:
> python "C:\Program Files
> (x86)\Eclipse\2023.10\tools\import\gtfs\gtfs2pt.py" -n ne2.net.xml --gtfs
> gtfs20210423.zip --date 20210423 --modes bus --vtype-output pt_vtypes.xml
>
> The gtfs_pt_stops.add, gtfs_pt_vehicles.add and pt_vtypes files are
> created but they are empty! you can see them in the attachment. Could you
> please tell me what I did wrong?
>
> One more question, instead of "shapes.txt" file, I have "agency.txt" and
> "links.txt" and "transfers.txt" file. Can I use each of these files instead
> of the shapes.txt file?
>
>
> --
> *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
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


[sumo-user] Adding PT to the network

2024-03-05 Thread fereshte jafari via sumo-user
I want to add the PTstops, routes, and schedules to my network using GTFS
data and then run a simulation for passenger and bus vehicles. I am
using the "Routes from shortest path" in this documentation:
  https://sumo.dlr.de/docs/Tutorials/GTFS.html#routes_from_shortest_path

I used the below command:
python "C:\Program Files
(x86)\Eclipse\2023.10\tools\import\gtfs\gtfs2pt.py" -n ne2.net.xml --gtfs
gtfs20210423.zip --date 20210423 --modes bus --vtype-output pt_vtypes.xml

The gtfs_pt_stops.add, gtfs_pt_vehicles.add and pt_vtypes files are created
but they are empty! you can see them in the attachment. Could you please
tell me what I did wrong?

One more question, instead of "shapes.txt" file, I have "agency.txt" and
"links.txt" and "transfers.txt" file. Can I use each of these files instead
of the shapes.txt file?


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




http://www.w3.org/2001/XMLSchema-instance"; xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/additional_file.xsd";>





http://www.w3.org/2001/XMLSchema-instance"; xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd";>





http://www.w3.org/2001/XMLSchema-instance"; xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/additional_file.xsd";>


___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


[sumo-user] incorrect street directions from shp to sumo.net

2024-02-28 Thread fereshte jafari via sumo-user
Hello!

I converted my shapefile to a sumo network using the below command

netconvert --shapefile-prefix roads4 --shapefile.use-defaults-on-failure
--speed-in-kmh t --type-files osmNetconvert4.typ -v

the generated network does not contain the road directions properly
although this attribute already exists in my shapefile with the name
DIR_TRAVEL which is given in the table of this documentation (Direction of
travel ("B": both, "F": forward, "T": backward)).
https://sumo.dlr.de/docs/Networks/Import/ArcView.html

In most cases, the directions are correct but bidirectional roads only work
in one direction!

Your guidance and help would be greatly appreciated.

-- 
*Sincerely,*
*Fereshteh Jafari Shahdani*
*PhD candidate, Dep. of Civil Engineering*
*ISISE - University of Minho*
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] MATSIM to SUMO network conversion

2023-11-28 Thread fereshte jafari via sumo-user
Dear Mirko,

Thanks for the update. I will try it tomorrow. Nevertheless, I already
transferred the modes to my sumo network using a Python script.

Regards,
Fereshteh





-- 
*Sincerely,*
*Fereshteh Jafari Shahdani*
*PhD candidate, Dep. of Civil Engineering*
*ISISE - University of Minho*
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


[sumo-user] GTFS

2023-11-21 Thread fereshte jafari via sumo-user
Hi,

I am trying to import public transport from GTFS. I run the below command
according to
https://sumo.dlr.de/docs/Tutorials/GTFS.html#routes_from_shortest_path

python "C:\Program Files
(x86)\Eclipse\sumo-git\tools\import\gtfs\gtfs2pt.py" --network net.xml
--gtfs itm_north_east_gtfs.zip --date 20230604 --modes bus --vtype-output
pt_vtypes.xml

The script runs for about 7 seconds with the below messages:

function import_gtfs called at Tue, 21 Nov 2023 14:57:22 +
function import_gtfs finished after 6.779245 seconds

without generating any subdirectories and output files. Can you tell me
what I did wrong?

-- 
*Sincerely,*
*Fereshteh *
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


[sumo-user] MATSIM to SUMO network conversion

2023-11-17 Thread fereshte jafari via sumo-user
Hello!

Can anybody help me in converting a MATSIM network to a SUMO network?

I tried the below command but this conversion command does not work
properly because some attributes of the MATSIM network like allowed modes
are lost in the SUMO network!

netconvert --matsim myMATsimNetwork.xml -o mySUMOnetwork.net.xml



-- 
*Sincerely,*
*Fereshteh *
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Routes from counting data

2023-11-06 Thread fereshte jafari via sumo-user
x, y = self.getGeoProj()(lon, lat)
>>>>   File "C:\Program Files
>>>> (x86)\Eclipse\Sumo\tools\sumolib\net\__init__.py", line 447, in getGeoProj
>>>> raise RuntimeError("Network does not provide geo-projection")
>>>> RuntimeError: Network does not provide geo-projection
>>>>
>>>>
>>>> Any ideas?
>>>>
>>>> Regards,
>>>> Fereshteh
>>>>
>>>> On Thu, Sep 21, 2023 at 7:53 AM Mirko Barthauer <
>>>> m.bartha...@t-online.de> wrote:
>>>>
>>>>> Dear Fereshte,
>>>>>
>>>>>
>>>>>
>>>>> the file is very large and as such not easy to share. Probably it is
>>>>> enough to place the right location tag in it. Mine looks like this:
>>>>>
>>>>>
>>>>>
>>>>> >>>> convBoundary="0.00,0.00,123689.54,148017.81"
>>>>> origBoundary="358612.77,508349.09,482302.31,656366.81" projParameter="!"/>
>>>>>
>>>>>
>>>>>
>>>>> Best regards
>>>>>
>>>>> Mirko
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> -Original-Nachricht-
>>>>>
>>>>> Betreff: Re: [sumo-user] Routes from counting data
>>>>>
>>>>> Datum: 2023-09-20T18:32:36+0200
>>>>>
>>>>> Von: "fereshte jafari" 
>>>>>
>>>>> An: "Mirko Barthauer" 
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Dear Mirko,
>>>>>
>>>>> Thanks for your response.
>>>>> I would be thankful if you could share the converted network including
>>>>> the location tag with projParameter attribute with me. Then I will
>>>>> see if the script located at SUMO_HOME/tools/detector/mapDetectors.py
>>>>> works with this network or not.
>>>>>
>>>>> Regards,
>>>>> Fereshteh
>>>>>
>>>>> On Fri, Sep 15, 2023 at 1:22 PM Mirko Barthauer <
>>>>> m.bartha...@t-online.de> wrote:
>>>>>
>>>>>> 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.fereshte1...@gmail.com> wrote:
>>>>>>
>>>>>>> Dear Mirko,
>>>>>>>
>>>>>>> I am using the latest version of sumo:
>>>>>>>
>>>>>>> #define VERSION_STRING "v1_18_0+-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
>>>>>>>
>>>>>>>  Matsim.network.xml
>>>>>>> <https://drive.google.com/file/d/1GSN3CXkkhQCVXKjWv82LaNXKpCmyPQ2j/view?usp=drive_web>
>>>>>>> Thanks for your time and guidance.
>>>>>>>
>>>>>>> Regards,
>>>>>>> Fereshteh
>>>>>>>
>>>>>>> On Tue, Sep 12, 2023 at 2:45 PM Mirko Barthauer <
>>>>>>> m.bartha...@t-online.de> 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
>>>>

Re: [sumo-user] Routes from counting data

2023-10-26 Thread fereshte jafari via sumo-user
raise RuntimeError("Network does not provide geo-projection")
>> RuntimeError: Network does not provide geo-projection
>>
>>
>> Any ideas?
>>
>> Regards,
>> Fereshteh
>>
>> On Thu, Sep 21, 2023 at 7:53 AM Mirko Barthauer 
>> wrote:
>>
>>> Dear Fereshte,
>>>
>>>
>>>
>>> the file is very large and as such not easy to share. Probably it is
>>> enough to place the right location tag in it. Mine looks like this:
>>>
>>>
>>>
>>> >> convBoundary="0.00,0.00,123689.54,148017.81"
>>> origBoundary="358612.77,508349.09,482302.31,656366.81" projParameter="!"/>
>>>
>>>
>>>
>>> Best regards
>>>
>>> Mirko
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> -Original-Nachricht-
>>>
>>> Betreff: Re: [sumo-user] Routes from counting data
>>>
>>> Datum: 2023-09-20T18:32:36+0200
>>>
>>> Von: "fereshte jafari" 
>>>
>>> An: "Mirko Barthauer" 
>>>
>>>
>>>
>>>
>>>
>>>
>>> Dear Mirko,
>>>
>>> Thanks for your response.
>>> I would be thankful if you could share the converted network including
>>> the location tag with projParameter attribute with me. Then I will see
>>> if the script located at SUMO_HOME/tools/detector/mapDetectors.py works
>>> with this network or not.
>>>
>>> Regards,
>>> Fereshteh
>>>
>>> On Fri, Sep 15, 2023 at 1:22 PM Mirko Barthauer 
>>> wrote:
>>>
>>>> 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.fereshte1...@gmail.com> wrote:
>>>>
>>>>> Dear Mirko,
>>>>>
>>>>> I am using the latest version of sumo:
>>>>>
>>>>> #define VERSION_STRING "v1_18_0+-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
>>>>>
>>>>>  Matsim.network.xml
>>>>> <https://drive.google.com/file/d/1GSN3CXkkhQCVXKjWv82LaNXKpCmyPQ2j/view?usp=drive_web>
>>>>> Thanks for your time and guidance.
>>>>>
>>>>> Regards,
>>>>> Fereshteh
>>>>>
>>>>> On Tue, Sep 12, 2023 at 2:45 PM Mirko Barthauer <
>>>>> m.bartha...@t-online.de> 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" 
>>>>>>
>>>>>> An: "Mirko Barthauer" 
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> De

Re: [sumo-user] Routes from counting data

2023-10-19 Thread fereshte jafari via sumo-user
>>>> Dear Mirko,
>>>>
>>>> I am using the latest version of sumo:
>>>>
>>>> #define VERSION_STRING "v1_18_0+-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
>>>>
>>>>  Matsim.network.xml
>>>> <https://drive.google.com/file/d/1GSN3CXkkhQCVXKjWv82LaNXKpCmyPQ2j/view?usp=drive_web>
>>>> Thanks for your time and guidance.
>>>>
>>>> Regards,
>>>> Fereshteh
>>>>
>>>> On Tue, Sep 12, 2023 at 2:45 PM Mirko Barthauer <
>>>> m.bartha...@t-online.de> 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" 
>>>>>
>>>>> An: "Mirko Barthauer" 
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> 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.
>>>>>
>>>>> [image: Screenshot 2023-09-12 at 09.36.57.png]
>>>>>
>>>>> Regards,
>>>>> Fereshteh
>>>>>
>>>>> On Mon, Sep 11, 2023 at 3:00 PM Mirko Barthauer <
>>>>> m.bartha...@t-online.de> 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" 
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> 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 
>>>>>>
>>>>>> main()
>>>>>

Re: [sumo-user] Routes from counting data

2023-10-17 Thread fereshte jafari via sumo-user
Dear Mirko,

Now my network file contains a *location* tag and a projParameter
attribute, exactly like what you shared with me. But still the script
loacted at SUMO_HOME/tools/detector/mapDetectors.py for reading the
"latitude" and "longitude" of detectors and locating the detectors on the
network does not work and I faced the below error message:

Traceback (most recent call last):
  File "C:\Program Files
(x86)\Eclipse\2023.10\tools\detector\mapDetectors.py", line 109, in 
main()
  File "C:\Program Files
(x86)\Eclipse\2023.10\tools\detector\mapDetectors.py", line 87, 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 447, in getGeoProj
raise RuntimeError("Network does not provide geo-projection")
RuntimeError: Network does not provide geo-projection


Any ideas?

Regards,
Fereshteh

On Thu, Sep 21, 2023 at 7:53 AM Mirko Barthauer 
wrote:

> Dear Fereshte,
>
>
>
> the file is very large and as such not easy to share. Probably it is
> enough to place the right location tag in it. Mine looks like this:
>
>
>
>  convBoundary="0.00,0.00,123689.54,148017.81"
> origBoundary="358612.77,508349.09,482302.31,656366.81" projParameter="!"/>
>
>
>
> Best regards
>
> Mirko
>
>
>
>
>
>
>
>
>
> -Original-Nachricht-
>
> Betreff: Re: [sumo-user] Routes from counting data
>
> Datum: 2023-09-20T18:32:36+0200
>
> Von: "fereshte jafari" 
>
> An: "Mirko Barthauer" 
>
>
>
>
>
>
> Dear Mirko,
>
> Thanks for your response.
> I would be thankful if you could share the converted network including the 
> location
> tag with projParameter attribute with me. Then I will see if the script
> located at SUMO_HOME/tools/detector/mapDetectors.py works with this
> network or not.
>
> Regards,
> Fereshteh
>
> On Fri, Sep 15, 2023 at 1:22 PM Mirko Barthauer 
> wrote:
>
>> 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 
>> wrote:
>>
>>> Dear Mirko,
>>>
>>> I am using the latest version of sumo:
>>>
>>> #define VERSION_STRING "v1_18_0+-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
>>>
>>>  Matsim.network.xml
>>> <https://drive.google.com/file/d/1GSN3CXkkhQCVXKjWv82LaNXKpCmyPQ2j/view?usp=drive_web>
>>> Thanks for your time and guidance.
>>>
>>> Regards,
>>> Fereshteh
>>>
>>> On Tue, Sep 12, 2023 at 2:45 PM Mirko Barthauer 
>>> 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" 
>>>>
>>>> An: "Mirko Barthauer" 
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> 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 netwo

[sumo-user] routes from counting data

2023-09-06 Thread fereshte jafari via sumo-user
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.

  /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:

https://sumo.dlr.de/docs/Tools/Detector.html#mapdetectorspy


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 

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*
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Routes from counting data

2023-09-04 Thread fereshte jafari via sumo-user
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 

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 
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" 
>
> An: "Sumo project User discussions" 
>
>
>
>
>
>
> 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 
> 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
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Routes from counting data

2023-07-14 Thread fereshte jafari via sumo-user
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 
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*
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


[sumo-user] Routes from counting data

2023-07-13 Thread fereshte jafari via sumo-user
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*
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user