Skip to content

Import a Lanelet2 (.osm) file

drawtonomy can read Lanelet2 OSM-format maps. Sample maps are available from the Autoware documentation.

Importing a full Lanelet2 file.
  1. Open the File menu → Import.
  2. Pick the .osm file.
  3. drawtonomy parses the file and populates the canvas with Lane shapes plus their connections.

For large maps, importing every lane will slow the editor down. Use the lane-selection dialog instead:

Drag-select only the lanes you care about, then import.
  1. Open the File menu → Import → Select lanes.
  2. drawtonomy shows a preview map.
  3. Click or drag to select the lanes you want.
  4. Click Import selection.

drawtonomy handles large maps, so you can import a full Lanelet2 file when you need to. When you only care about a section, importing just the lanes you need keeps the editor snappiest and avoids loading geometry you won’t edit.

Imported lanes are full-fidelity Lane shapes; the connections from the Lanelet2 file are preserved. Edit, smooth, or export back without losing topology.

drawtonomy keeps the original .osm XML as a sidecar when you import. On export back to .osm (Lanelet2), original IDs and tags are preserved, and regulatory elements you didn’t touch — traffic lights, right-of-way, speed limits, stop signs — are re-emitted from that source verbatim.

Imported regulatory elements also become editable: traffic lights, traffic signs (including speed limits), stop lines, and right-of-way relations come in as drawtonomy shapes linked to the lanelets they govern, and you can place new ones from scratch with the same UI. For LiDAR-aligned or city-scale authoring, use Vector Map Builder or JOSM.