Hi Max,
in which way are the x,y coordinates wrong? Can you send your input files?
When converting from x,y to lon lat you need to leave out the last
parameter (True) which is only needed when converting raw UTM coordinates.

Best regards,
Michael


Am 21.10.20 um 12:09 schrieb Maximilian Socher:
> Hi Giuliana,
> 
> thanks for your reply. I am currently working on a script based on your
> input, however the coordinates I'm getting are way off.
> 
> I'm extracting the laneID and lanePos from my ptstops.add.xml. These are
> correct. The x and y-coordinates I recieve from
> /sumolib.geomhelper.positionAtShapeOffset(net.getLane(laneID).getShape(),
> lanePos)/ however are way off. 
> So are the lon and lat (obviously /net.convertXY2LonLat(x, y, True)/ already
> calculates on wrong x and y, but even with hardcoded correct coordinates the
> lon, lat I recieve are just off the coast of Ghana whereas my network is a
> city in northern Germany).
> 
> Any idea where I might have went wrong?
> 
> Regards,
> Max
> 
> 
> 
> --
> Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/
> _______________________________________________
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit 
> https://www.eclipse.org/mailman/listinfo/sumo-user
> 


Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to