fullseye

osm_parse — DRIVE japan op

使い方

OSM XML(文字列かファイルパス)を読み、節点を局所平面座標 [m] に落とす。

返り値 {"origin": (lat0, lon0), "nodes": {id: {"xy": (x, y), "lat", "lon", "tags": {}}}, "ways": [{"id", "nodes": [id], "tags": {}}], "bbox": (xmin, xmax, ymin, ymax)(`` があればそれ、無ければ節点の範囲), "n_nodes", "n_ways"}``。 origin が None なら ```` の中心(無ければ節点の平均)。```` が未知の節点を指す way はその節点を落とす(件数を ``n_dangling`` に)。 **Raises** ``ValueError``: XML でない、```` でない、節点が 1 つも無い。

参考(サンプルデータ・文献)

実行できる例(この op を実際に呼ぶ検証済みサンプル)

型が繋がる次の op(table を入力に取れる)

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

同カテゴリ(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. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。

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