[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [sumo-user] Transform network coordinates
|
Your plot is squished along the y-axis. Make sure that both axes have the same scaling in terms of pixels per meter.
how come when I use plot_net_dump.py() I get a bird-eye view of the same network, but when I plot the shapes myself just like
plotNet() function in the helpers, the view is angled?

The location element states that your network coordinates (including edge shapes) are already projected with UTM (the Universal Transverse Mercator) to meter values.
I have imported the network from OSM and did not define any projection specifications (I thas been a while, I can't be sure honestly about that). I have plotted x,y from net.edge.getShape() of sumolib for the plot.
but here is what the location element in the xml says:
<location netOffset="-689240.30,-5332378.01" convBoundary="0.00,0.00,3968.56,4377.92" origBoundary="11.543158,48.116111,11.598089,48.155686" projParameter="+proj=utm +zone=32 +ellps=WGS84 +datum=WGS84 +units=m +no_defs"/>
Any coordinates in a .net.xml file are supposed to be in m. The Value range of 0-4000 in you image certainly doesn't suggest WGS84.
It would help if you described from what kind of data your network was created and what it says in the <location> element at the start of your .net.xml file (the first child element after the opening <net> element).
Dear all,
how can I transform my network coordinates in order to get x,y in a mercator system? When I plot the network in python I get a WGS84 view but I prefer to get a flattened top view as in epsg:3875. I cannot convert from OSM as I have been fixing the network manually. Netconvert --proj.dhdn didn't help. Any tips are welcomed.
Thanks
Sasan
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user