osm_parse — DRIVE japan op

• Data kinds: any → table

• Call: import fullseye as fs; fs.ledger.osm_parse(source, *, origin=None) -> 'Dict[str, object]' (to call the implementation directly, import drivejapan; drivejapan.osm_parse(source, *, origin=None) -> 'Dict[str, object]'; from the registry, opsdrive.get("osm_parse"))

Usage

Reads OSM XML (a string or a file path) and projects the nodes to local planar coordinates [m].

Return value {"origin": (lat0, lon0), "nodes": {id: {"xy": (x, y), "lat", "lon", "tags": {}}}, "ways": [{"id", "nodes": [id], "tags": {}}], "bbox": (xmin, xmax, ymin, ymax)(<bounds> があればそれ、無ければ節点の範囲), "n_nodes", "n_ways"}. If origin is None, the centre of <bounds> (if absent, the mean of the nodes). A way whose <nd ref> points to an unknown node drops that node (the count goes to n_dangling). Raises ValueError: not XML, not <osm>, no nodes at all.

References (sample data, literature)

• Sample-data catalog (download URLs / licences) — 2-D uses skimage.data (BSD/public domain) plus synthetic images; 3-D lists download URLs for real data sources (Stanford, PDS, …).

• Operator provenance and references — the sources of the research/methods this op family came from.

• The canonical algorithm (author, year) and its uses are named in the family usage guide above.

Runnable examples (verified samples that actually call this op)

• poc_driving_japan_town — py -3.11 examples/poc_driving_japan_town.py

Ops the type connects to (they accept table as input)

course_layout · course_occupancy · course_contains · world_build · world_camera · world_move · lidar_scan · rss_longitudinal_same

Same category (japan)

osm_synthetic · osm_road_graph · osm_road_mask · osm_road_loops · osm_route · japan_world · japan_stats · latlon_to_local


*Provenance: drivejapan.py — DRIVE operator registry. This per-op note is generated by tools/opdocs.py md (do not hand-edit).*

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.