Hi Marek, Sorry,... accidently pressed the send button too early :-)
I thank you very much, Marcus P.S. I forward this to the group that others can benefit from your answer as well > Am 03.07.2016 um 23:18 schrieb sumo.mahei <[email protected]>: > > Hi, > > Sumo actually doesn't care about the (outer)shape of a lane, > The vehicle's front centre is moved along the lane-line for > which you described as support points. > > The 'shape' of the lane and edges in sumo-gui are rendered > from the width, but there is no traci way to receive or extrude them. > > When I came across a similar issue approx a year ago, > Shaply (http://toblerity.org/shapely/manual.html) for python helped quite > well. > E.g. for an lane you can add a buffer to a (Mulit)LineString made from the > lane's support point. > For junctions just simply use Polygons. > > Most of the data I retrieved from the sumolib so I didn't neet to push it all > through traci. > > With best Regards > Marek Heinrich > simoserv GmbH > >> On 30.06.2016 15:19, Marcus Müller wrote: >> Dear Sumo experts, >> >> I am looking for a way to reconstruct the SUMO road geometry within an >> external Matlab script as good as possible. As the getShape method of the >> lane-class provides 'only' a line of support points along which the lane >> runs I wonder whether it is possible to determine the exact positions of >> the (left and right) borders of a road? >> As roads and especially junctions don't look the same all over the network, >> I would like to retrieve as many coordinates as possible describing the >> actual geometry of the edges, lanes and junctions surrounding a randomly >> selected vehicle. >> >> I'm thinking about subscribing to edges and junctions and by that >> retrieving all lanes and junctions around my car. Next I would like to >> retrieve a list of x and y points which describe the shape of the road or >> lane and the junction(s). Plotting all points should lead to the contours >> of the roads and junctions close to my car. >> >> Is there a way to do this programatically? >> >> Thank you very much, >> >> Marcus >> ------------------------------------------------------------------------------ >> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San >> Francisco, CA to explore cutting-edge tech and listen to tech luminaries >> present their vision of the future. This family event has something for >> everyone, including kids. Get more information and register today. >> http://sdm.link/attshape >> _______________________________________________ >> sumo-user mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/sumo-user > ------------------------------------------------------------------------------ Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San Francisco, CA to explore cutting-edge tech and listen to tech luminaries present their vision of the future. This family event has something for everyone, including kids. Get more information and register today. http://sdm.link/attshape _______________________________________________ sumo-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-user
