1.OPenStreetMap generate map
http://www.openstreetmap.org/
2.Convert map into the form that SUMO can use
cmd,input cd C:\Users\Pc\Desktop\Final project\MAP>
input netconvert --osm-files Southampton1.osm -o Southampton1.net.xml
Then Southampton1.net will be generated, and input sumo-gui to open sumo, then find the net file to open
3.Add additional polygons to the map(building,grass,river, so forth)-polyconvert
First of all, create typemap.xml file in this directory, the content of file is in http://sumo.dlr.de/wiki/Networks/Import/OpenStreetMap 的Importing additional Polygons. After this step, the file Southampton1.poly.xml will be created.
polyconvert --net-file Southampton1.net.xml --osm-files Southampton1.osm --type-file typemap.xml -o Southampton1.poly.xml
4.Check outcome
input sumo-gui -n Southampton1.net.xml -a Southampton1.poly.xml in cmd