osm_synthetic — DRIVE japan op

• Data kinds: none → any (an op determined by its arguments alone — it takes no image or data input)

• Call: import fullseye as fs; fs.ledger.osm_synthetic(kind: 'str' = 'grid', *, origin=(35.6716, 139.765), n: 'int' = 3, pitch: 'float' = 80.0) -> 'str' (to call the implementation directly, import drivejapan; drivejapan.osm_synthetic(kind: 'str' = 'grid', *, origin=(35.6716, 139.765), n: 'int' = 3, pitch: 'float' = 80.0) -> 'str'; from the registry, opsdrive.get("osm_synthetic"))

Usage

> This operator's description has not been translated yet. The original text follows as it is.

テストと fuzz 用の最小の OSM XML(本物と同じ要素: bounds / node / way / tag)。

"grid" = n × n の格子(東西 = primary、lanes=2、南北 = residential、幅は既定)。中央の交差点に `highway=traffic_signals`、

東の縁の中段(T 字路)に `highway=stop、西の辺の途中に highway=crossing、南の辺の途中に railway=level_crossing`。

"line" = 東西 1 本の residential(長さ pitch × (n − 1))。Raises `ValueError`: kind が未知、n < 2、pitch ≤ 0。

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 any as input)

course_crank · course_s_curve · course_turnaround · course_slope · course_intersection · course_parallel_parking · course_crossing · course_road

Same category (japan)

osm_parse · 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.