[
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
step2) edgesInDistricts.py -n circular.net.xml -t circle.poi.xml
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?
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
_______________________________________________
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>