Skip to main content

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

Hello,
What kind of coordinates would you expect? The origBoundary values look a bit like UTM values where the wrong zone was used for projecting something from Finnland.

regards,
Jakob

2018-04-20 7:58 GMT+02:00 Thuresson, Daniel <daniel.thuresson.2@xxxxxxxxxxxxx>:

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


_______________________________________________
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



Back to the top