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>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] Assistance Request: Building Visual Studio Solution with libsumo Library

2024-03-11 Thread The div via sumo-user
As mirko says.
Visual studio releases keep moving things around so it's virtually impossible 
to give generally useful guidelines.

You need to find out how to add include directories, library directories and 
libraries for the specific visual studio version you have.

Once you know that, the basic information you need is -
The include directory to add is the
sumo/include
directory in your installation, the library directory to add is the
sumo/bin
directory and the library is sumolibcpp.lib

In your code it's
#include 
and I usually add
using namespace libsumo;
because I'm lazy.

Visual studio will usually guide you to the members but it's useful to remember 
that the first letter of the domain will be capitalised - ie Simulation, Lane, 
Vehicle etc.

Cheers
Div

 Original Message 
On 11 Mar 2024, 07:58, Mirko Barthauer via sumo-user wrote:

> Dear Milad,
>
> at that point I would advise you to do some Visual Studio C++ tutorial to get 
> accustomed to linking libraries. There are plenty help pages on the internet 
> when searching for c++ linking libraries in Visual Studio. Configuring the 
> settings for libsumo isn't any way different than any other library you want 
> to link.
>
> Best regards
>
> Mirko
>
> -Original-Nachricht-
>
> Betreff: Assistance Request: Building Visual Studio Solution with libsumo 
> Library
>
> Datum: 2024-03-10T22:05:02+0100
>
> Von: "Milad Sasha" 
>
> An: "Mirko Barthauer" 
>
> Dear SUMO Support Team,
>
> I hope this message finds you well.
>
> I am reaching out to request assistance with building a working solution in 
> Visual Studio for a C++ project that utilizes the "libsumo" library. Despite 
> my efforts for weeks, I have encountered challenges in configuring the 
> project and integrating the libsumo library correctly.
>
> Would it be possible for you to provide a Git repository containing an 
> already-built solution, along with the simplest example demonstrating the 
> usage of the libsumo library in a C++ project? Additionally, I would greatly 
> appreciate it if the repository could include detailed instructions or a 
> README file explaining how to build the solution. This should encompass any 
> necessary steps for configuring the project and linking against the libsumo 
> library.
>
> Your support in this matter would be immensely valuable in helping me 
> understand and effectively utilize the libsumo library in my projects.
>
> Thank you for considering my request. I eagerly await your response and 
> guidance.
>
> Best regards,
>
> ___
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] Network conversion

2024-03-11 Thread Mirko Barthauer via sumo-user
Dear Joan,
 
we only offer tools for VISUM import, not for exporting the SUMO network. 
The only network file types SUMO can read and write are OpenDRIVE, amitran 
and Navteq. If you want to try the conversion yourself, you can read the 
SUMO net with sumolib  or 
parse PlainXML  files.
 
Best regards
Mirko
 
 
 
 
-Original-Nachricht-
Betreff: [sumo-user] Network conversion
Datum: 2024-03-11T12:21:10+0100
Von: "Joan Carmona Mercadé via sumo-user" 
An: "sumo-user@eclipse.org" 
 
 
 
Hello Community,
 
I'm trying to export a SUMO network to a VISUM environment. 
Is there any use for exporting a SUMO network to some format that VISUM 
understands?
 
Thanks,
Joan
 
 
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


[sumo-user] Network conversion

2024-03-11 Thread Joan Carmona Mercadé via sumo-user
Hello Community,

I'm trying to export a SUMO network to a VISUM environment.
Is there any use for exporting a SUMO network to some format that VISUM 
understands?

Thanks,
Joan

___
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] Assistance Request: Building Visual Studio Solution with libsumo Library

2024-03-11 Thread Mirko Barthauer via sumo-user
Dear Milad,
 
at that point I would advise you to do some Visual Studio C++ tutorial to 
get accustomed to linking libraries. There are plenty help pages on the 
internet when searching for c++ linking libraries in Visual Studio. 
Configuring the settings for libsumo isn't any way different than any other 
library you want to link.
 
Best regards
Mirko
 
 
 
 
-Original-Nachricht-
Betreff: Assistance Request: Building Visual Studio Solution with libsumo 
Library
Datum: 2024-03-10T22:05:02+0100
Von: "Milad Sasha" 
An: "Mirko Barthauer" 
 
 
 
Dear SUMO Support Team,
I hope this message finds you well.
I am reaching out to request assistance with building a working solution in 
Visual Studio for a C++ project that utilizes the "libsumo" library. 
Despite my efforts for weeks, I have encountered challenges in configuring 
the project and integrating the libsumo library correctly.
Would it be possible for you to provide a Git repository containing an 
already-built solution, along with the simplest example demonstrating the 
usage of the libsumo library in a C++ project? Additionally, I would 
greatly appreciate it if the repository could include detailed instructions 
or a README file explaining how to build the solution. This should 
encompass any necessary steps for configuring the project and linking 
against the libsumo library.
Your support in this matter would be immensely valuable in helping me 
understand and effectively utilize the libsumo library in my projects.
Thank you for considering my request. I eagerly await your response and 
guidance.
Best regards,
  
 
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user