Repository navigation
How Mission Analyzer loads linear landmarks for the simulator: from Overpass to Overture #12
Mission-analyzer
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
In the simulator camera (colour and thermal) we draw what a pilot uses to recognise terrain without instruments: roads, railways, rivers and water bodies, bridges, power lines. All of it comes from OpenStreetMap. Below is what we tried, where we got stuck, and where we ended up.
1. First approach: Overpass API
The obvious route is to ask Overpass for features in 0.25° cells along the route:
Over fields and villages this works. Over a large city it doesn't:
502 Bad Gatewayon every public server;What helped, but didn't solve it:
node["power"="tower"]): we place pylons ourselves at line vertices — in OSM a power line vertex is a pylon;out geom qt;);Even then, the roads-and-water cell over the city took tens of minutes or failed outright.
2. How others do it
Nobody loads data in bulk through Overpass: osm2city (FlightGear) and Ortho4XP (X-Plane) work from pre-downloaded OSM extracts. Overpass is great for targeted queries, not for loading a city.
3. The solution: Overture Maps
Overture Maps publishes the same OSM data every month, converted to its own schema, as GeoParquet files in the cloud (S3/Azure), with no request limits. The themes we need:
transportation/segment— roads and railways, with class and bridge/tunnel flags;base/water— rivers and canals as lines; lakes, ponds, reservoirs as polygons;base/infrastructure— power lines, pylons, communication towers, bridges;buildings/building— buildings (OSM, Esri, Google, Microsoft), many with height or floor count.The key to speed is the STAC catalog. Each type's collection lists the bounding box of every file in the release, so only 1–3 files out of hundreds are opened, and pyarrow reads only the row groups that overlap the requested box:
Measurements on a 0.25° cell over a large city:
4. Bridges and tunnels from Overture flags
A road segment's flags are given as fractions of its length:
We cut the segment at the flag boundaries: the
is_bridgepart becomes a bridge (level fromlevel_rules, width fromwidth_rules), theis_tunnelpart is dropped, the rest is an ordinary road. Interchange ramps aresubclass = "link".5. Compatibility
Overture rows are converted into OSM-shaped elements (
way+highway,bridge,layer,waterway,natural=watertags), so everything downstream — road and water masks on the terrain, 3D bridges, deck collisions — works unchanged. Overpass remains a fallback for cells Overture didn't return.6. Caveats
We'd love feedback and experience: how do you load OSM data for your simulators and ground stations?
(с) Сергей Горбачевский / Serhii Horbachevskyi, s.gorbi@gmail.com
All reactions