Skip to main content

[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.

Am Do., 30. Juni 2022 um 23:26 Uhr schrieb Sasan Amini <aminissn@xxxxxxxxx>:
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? 
image.png

On Thu, Jun 30, 2022 at 10:03 PM Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:
The location element states that your network coordinates (including edge shapes) are already projected with UTM (the Universal Transverse Mercator) to meter values.

Am Do., 30. Juni 2022 um 09:36 Uhr schrieb Sasan Amini <aminissn@xxxxxxxxx>:
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"/>

On Thu, Jun 30, 2022 at 7:16 AM Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:
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).

Am Do., 30. Juni 2022 um 03:03 Uhr schrieb Sasan Amini <aminissn@xxxxxxxxx>:
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
image.png
_______________________________________________
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

Back to the top