Hello, there is currently no way to achieve the desired effect using only polyconvert. I've open up a ticket ( http://sumo-sim.org/trac.wsgi/ticket/1426) but i'm not sure when someone will get around to it. You can use sumolib (http://sumo-sim.org/wiki/Tools/Sumolib) to convert network coordinates back to geo-coordinates. Load the network and then use net.convertXY2LonLat. Note, that you need the python moduel pyproj to be installed. regards, Jakob
2014-09-05 9:12 GMT+02:00 Omnet Student <[email protected]>: > Hi all > I'm doing a project in which I have to parse buildings from an OSM > file, and get the corresponding coordinates in lat/lon. However, when > running the command > > polyconvert --osm-files network.osm --type-file typemap_1.xml -o > network.poly.xml --ignore-errors > > I get all the buildings coordinates converted in cartesian values. I tried > to use > > --simple-projection > > but the approximation is too big, only two decimals. > > Basically, I have two options: > 1. Pass a parameter to poyconvert that keeps the buildings coordinates > instead of converting them to cartesian, but I could not find that option. > 2. Convert the generated x/y values back into lat/lon, but I did not find > documentation on how the conversions is done. > > Any idea on this? > > Thank you in advance > > ------------------------------------------------------------------------------ > Slashdot TV. > Video for Nerds. Stuff that matters. > http://tv.slashdot.org/ > _______________________________________________ > sumo-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/sumo-user > ------------------------------------------------------------------------------ Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ _______________________________________________ sumo-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-user
