You can also use netconvert to get node and edge geometries in WGS84 by calling netconvert -s your.net.xml --plain-output-prefix plain --proj.plain-geo
Am Mi., 17. Apr. 2019 um 07:05 Uhr schrieb Michael Behrisch <o...@behrisch.de >: > Hi Barry, > sumo's netconvert uses the proj library to convert WGS84 OSM coordinates > to UTM and then adds an offset to have the lower left corner > approximately at 0,0 (to make the coordinates easier to read and reduce > floating point errors when calculating). To convert it back the easiest > way is to use sumolib, see > https://sumo.dlr.de/wiki/Tools/Sumolib#coordinate_transformations but if > you want to do it yourself you can just subtract the offset from your > coordinates and project it back from UTM with the tool of your choice > (if you use proj, you have the proj option string already there). > > Best regards, > Michael > > Am 16.04.19 um 18:23 schrieb Evans, Barry: > > Hi all, > > > > > > > > I’ve used the WebWizard to generate a network file and I’ve converted > > the lines into a JSON format. I need to fix the projection though as to > > overlay it onto a map. The line coordinates are defined as followed: > > > > > > > > shape="2341.81,2313.86 2340.45,2313.94 2339.52,2313.95 2338.58,2313.93 > > 2337.22,2313.89" > > > > > > > > I assume these maybe coordinates from a lower left corner. Does anyone > > know how to use the reference data to convert these to British national > > Grid or to Lat Longs (WGS84). The location coordinate component which > > gives some information shows this: > > > > > > > > <location netOffset="-526561.27,-5698105.60" > > convBoundary="0.00,-0.00,5740.81,3968.92" > > origBoundary="-2.712703,51.422728,-2.534214,51.500660" > > projParameter="+proj=utm +zone=30 +ellps=WGS84 +datum=WGS84 +units=m > > +no_defs"/> > > > > > > > > I can’t see how to use this to reproject the data though. > > > > > > > > Any help would be greatly appreciated. > > > > > > > > Kind regards, > > > > > > > > Barry > > > > > > > > Dr Barry Evans BSc(Hons), MSc, PhD > > > > College of Engineering, Mathematics and Physical Sciences, > > > > Harrison Building, > > > > University of Exeter, > > > > North Park Road, > > > > Exeter, > > > > EX4 4QF > > > > > > > > Tel: +44(0)1392724075 > > > > Email: b.ev...@exeter.ac.uk <mailto:b.ev...@exeter.ac.uk> > > > > > > > > > > _______________________________________________ > > sumo-user mailing list > > sumo-user@eclipse.org > > To change your delivery options, retrieve your password, or unsubscribe > from this list, visit > > https://www.eclipse.org/mailman/listinfo/sumo-user > > > > > _______________________________________________ > sumo-user mailing list > sumo-user@eclipse.org > To change your delivery options, retrieve your password, or unsubscribe > from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user >
_______________________________________________ sumo-user mailing list sumo-user@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user