Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] Vehicle position output

Hi,

 

I have the EmissionOutput activated and wants to use the x and y position output. The manual says this:

 

pos_x

---

The absolut X coordinate of the vehicle. The value depends on the given geographic projection.

pos_y

---

The absolut Y coordinate of the vehicle. The value depends on the given geographic projection.

 

 

Fine, but the results file looks something like this:

 

<vehicle id="100.39" type="veh165" lane="1072.0_0" speed="13.89" pos="71.74" angle="274.98" x="4687.89" y="1231.88" dist2front="170.56"/>

 

What are the x and y values? A coordinate relative to something?

A read about this in the manual and found out that you should:

 

“For networks with no projection (projParameter='!'), only the offset must be applied.”

 

Ok, my offset is this:

 

<location netOffset="-1433123.30,-7374447.50" convBoundary="0.00,0.00,9340.19,10863.49" origBoundary="1433123.30,7374447.50,1442463.49,7385311.00" projParameter="!"/>

 

If I subtract the offsets the result still makes no sense to me…

 

Any help is appreciated!

 

Rgds /Daniel


Back to the top