Sorry for the late response. Here is the location that we have set.
<location netOffset="-727355.18,-1416833.40" convBoundary="0.00,0.00,90258.93,58234.44" origBoundary="77.098996,12.802468,77.927674,13.334317" projParameter="+proj=utm +zone=43 +ellps=WGS84 +datum=WGS84 +units=m +no_defs"/> ________________________________ From: [email protected] <[email protected]> on behalf of Jakob Erdmann <[email protected]> Sent: 03 May 2019 23:46 To: Sumo project User discussions Subject: Re: [sumo-user] Inquiry : Conversion from co-ordinate axis to Latitude and Longitude What is the <location> attribute of the network that was loaded when the calls below were made? Am Fr., 3. Mai 2019 um 19:00 Uhr schrieb Sheshadri Kalkunte Ramachandra <[email protected]<mailto:[email protected]>>: Code: position = traci.vehicle.getPosition(self.vehicleId) pos_x = position[0] # cartesian X pos_y = position[1] # cartesian Y geo_co_ord = traci.simulation.convertGeo(pos_x, pos_y, fromGeo=False) The geo co-ordinates which i receive are incorrect. I have checked by putting them in google maps. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Outputs: The cartesian co-ordinate (50450.7527098387, 22602.868908196364) => returned by getPosition(vehicleId) The geo co-ordinate (777805.9327098387, 1439436.2689081964) => returned by convertGeo(pos_x, pos_y)
_______________________________________________ sumo-user mailing list [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
