Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] How to use OD data to generate trip?

Jakob, 

Thanks in advance. 

I have tried to use the edgesInDistricts.py in the SUMO command line to generate the taz.xml I want to have.

In the command line:
step1) polyconvert -n circular.net.xml -o circle.poi.xml
image.png
step2) edgesInDistricts.py -n circular.net.xml -t circle.poi.xml
image.png
The attachment  contains the INPUT: circular.net.xml
                                 and   OUTPUT : districts.taz.xml  and circle.poi.xml

However, these output documents contain nothing.
Is there something wrong with my usage?


On Tue, Sep 4, 2018 at 1:03 AM Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:
Hello,
I just fixed the misleading wiki documentation . You do not need a route file to call edges in districts but a polygon file (that can be created by netedit or polyconvert):

 
<SUMO_HOME>/tools/edgesInDistricts.py -n myNet.net.xml -t myDistrictPolygons.add.xml



2018-09-03 21:08 GMT+02:00 Jane Cheung <cheung180515@xxxxxxxxx>:

As the step recommended by you in the previous email. I check the usage of the function of the "edgesInDistricts.py" http://sumo.dlr.de/wiki/Tools/District
 <SUMO_HOME>/tools/edgesInDistricts.py -n myNet.net.xml -t myDistricts.rou.xml
“-t myDistricts.rou.xml ”, a rou.xml need be used here? 

The aim that I would like to get the TAZ document is  to use both generated  TAZ.XML and O.FMA to get the TRIPS.XML. In other words, the process described means that it is not necessary to know the route of every vehicle
 
If I do not know or do not have the ROU.XML, how could I get the TAZ document?

Hope to get  your help!

Regards!

Jane Cheung






On Mon, Sep 3, 2018 at 12:24 PM Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:
Yes. You can generate the TAZ in these two steps:
1) draw polygons in NETEDIT
2) use the python tool edgesInDistricts.py

2018-09-03 18:31 GMT+02:00 Jane Cheung <cheung180515@xxxxxxxxx>:
Jakob, 

Appreciate for your detailed reply!
Does it mean that If I want to use the OD format like http://sumo.dlr.de/wiki/Demand/Importing_O/D_Matrices described to get the TRIPS.XML, I also need to generate the document of  the TAZ?.
Then, both of them could be used together using the command 
-n input_taz.taz.xml -d input_od_o.fma -o trips.trips.xml
 to generate the TRIPS.XML   and use trips document to configure the.sumofg document?

Best regards!

Jane Cheung



On Mon, Sep 3, 2018 at 11:11 AM Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:
The first line is a format specified. You just have to copy it.
The lines starting with '*' are comments and can be omitted
The second non-comment line determines the time range HOUR.MINUTE HOUR.MINUTE
The third line is a global scaling factor (you can leave it at 1.0)

2018-09-03 18:03 GMT+02:00 Jane Cheung <cheung180515@xxxxxxxxx>:

Jakob,

Thanks for your reply! 
The things confused me is the meaning of every command, like  http://sumo.dlr.de/wiki/Demand/Importing_O/D_Matrices#The_O-format_.28VISUM.2FVISSIM.29 in each line.
Where I could get the meaning of each line?


Regards!
Jane Cheung

On Mon, Sep 3, 2018 at 10:45 AM Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:
Hello,
The matrix cells can also use letters in their ID so the entry lines would be
...
A A 99
B A 77
D A 0
...
The wiki page http://sumo.dlr.de/wiki/Demand/Importing_O/D_Matrices is the most detailed documentation available but feel free to come back with specific questions.

regards,
Jakob

2018-08-31 20:57 GMT+02:00 Jane Cheung <cheung180515@xxxxxxxxx>:
Hi everyone,
   I have the data of OD like 
OD Marix.png

How to transfer the original format to the official format the SUMO could be used and  how to use the generated OD format to generate the trips document.
 
I know there are some websites that describes the process how to generate, however,   I am a novice to use SUMO, could someone describe how to realize  that simply. 

Thanks in advance for some who could help me !


Best regards!


Jane

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user


_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user


_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user


_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user


_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 09/04/18 09:52:40 by SUMO polyconvert Version 0.32.0
<?xml version="1.0" encoding="UTF-8"?>

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

    <input>
        <net-file value="circular.net.xml"/>
    </input>

    <output>
        <output-file value="circle.poi.xml"/>
    </output>

</configuration>
-->

<additional xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/additional_file.xsd";>
</additional>
<tazs>
</tazs>
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 09/02/18 12:35:23 by SUMO netconvert Version 0.32.0
<?xml version="1.0" encoding="UTF-8"?>

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

    <input>
        <node-files value="data/circular.nod.xml"/>
        <edge-files value="data/circular.edg.xml"/>
        <type-files value="data/circular.typ.xml"/>
    </input>

    <output>
        <output-file value="data/circular.net.xml"/>
    </output>

    <processing>
        <no-internal-links value="true"/>
        <no-turnarounds value="true"/>
    </processing>

</configuration>
-->

<net version="0.27" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/net_file.xsd";>

    <location netOffset="0.00,0.00" convBoundary="0.00,0.00,1250.00,1250.00" origBoundary="0.00,0.00,1250.00,1250.00" projParameter="!"/>

    <type id="edgeType" numLanes="2" speed="36.10"/>

    <edge id="bottom" from="bottom-left" to="bottom-right" priority="-1" type="edgeType">
        <lane id="bottom_0" index="0" speed="36.10" length="1250.10" shape="-0.05,-4.95 1250.05,-4.95"/>
        <lane id="bottom_1" index="1" speed="36.10" length="1250.10" shape="-0.05,-1.65 1250.05,-1.65"/>
    </edge>
    <edge id="left" from="top-left" to="bottom-left" priority="-1" type="edgeType">
        <lane id="left_0" index="0" speed="36.10" length="1250.10" shape="-4.95,1250.05 -4.95,-0.05"/>
        <lane id="left_1" index="1" speed="36.10" length="1250.10" shape="-1.65,1250.05 -1.65,-0.05"/>
    </edge>
    <edge id="right" from="bottom-right" to="top-right" priority="-1" type="edgeType">
        <lane id="right_0" index="0" speed="36.10" length="1250.10" shape="1254.95,-0.05 1254.95,1250.05"/>
        <lane id="right_1" index="1" speed="36.10" length="1250.10" shape="1251.65,-0.05 1251.65,1250.05"/>
    </edge>
    <edge id="top" from="top-right" to="top-left" priority="-1" type="edgeType">
        <lane id="top_0" index="0" speed="36.10" length="1250.10" shape="1250.05,1254.95 -0.05,1254.95"/>
        <lane id="top_1" index="1" speed="36.10" length="1250.10" shape="1250.05,1251.65 -0.05,1251.65"/>
    </edge>

    <junction id="bottom-left" type="priority" x="0.00" y="0.00" incLanes="left_0 left_1" intLanes="" shape="-6.55,-0.05 -0.05,-0.05 -0.05,-6.55">
        <request index="0" response="00" foes="00"/>
        <request index="1" response="00" foes="00"/>
    </junction>
    <junction id="bottom-right" type="priority" x="1250.00" y="0.00" incLanes="bottom_0 bottom_1" intLanes="" shape="1250.05,-0.05 1256.55,-0.05 1250.05,-6.55">
        <request index="0" response="00" foes="00"/>
        <request index="1" response="00" foes="00"/>
    </junction>
    <junction id="top-left" type="priority" x="0.00" y="1250.00" incLanes="top_0 top_1" intLanes="" shape="-0.05,1256.55 -0.05,1250.05 -6.55,1250.05">
        <request index="0" response="00" foes="00"/>
        <request index="1" response="00" foes="00"/>
    </junction>
    <junction id="top-right" type="priority" x="1250.00" y="1250.00" incLanes="right_0 right_1" intLanes="" shape="1256.55,1250.05 1250.05,1250.05 1250.05,1256.55">
        <request index="0" response="00" foes="00"/>
        <request index="1" response="00" foes="00"/>
    </junction>

    <connection from="bottom" to="right" fromLane="0" toLane="0" dir="l" state="M"/>
    <connection from="bottom" to="right" fromLane="1" toLane="1" dir="l" state="M"/>
    <connection from="left" to="bottom" fromLane="0" toLane="0" dir="l" state="M"/>
    <connection from="left" to="bottom" fromLane="1" toLane="1" dir="l" state="M"/>
    <connection from="right" to="top" fromLane="0" toLane="0" dir="l" state="M"/>
    <connection from="right" to="top" fromLane="1" toLane="1" dir="l" state="M"/>
    <connection from="top" to="left" fromLane="0" toLane="0" dir="l" state="M"/>
    <connection from="top" to="left" fromLane="1" toLane="1" dir="l" state="M"/>

</net>

Back to the top