OpenStreetMap import

From FlightGear wiki
Revision as of 20:28, 31 August 2012 by Gijs (talk | contribs) (→‎Object types: Antennas added, those are important landmarks!)
Jump to navigation Jump to search
WIP.png Work in progress
This article or section will be worked on in the upcoming hours or days.
See history for the latest developments.

With the upcoming license change, we'll be able to use OpenStreetMap data in the official FlightGear scenery. Some of the most interesting things to import from OpenStreetMap are shared objects (generic models like windturbines, power lines, water towers).

This article lists open questions, ideas and planes related to the import process.

Object types

This table lists models from the FlightGear scenery database, together with a corresponding OSM tag.

Tag Model Number of objects
Antennas
  • tower:type=communication
  • man_made=antenna
Models/Communications/radio-*.xml

36,126
946

  • man_made=communications_tower
Models/Communications/fernmeldeturm_gruenwettersbach.xml 1 584
Chimneys
  • man_made=chimney
Models/Industrial/generic_chimney_01.xml 6,486
Cooling towers
  • man_made=cooling_tower
Models/Power/coolingtower.xml 251
Lighthouse
  • man_made=lighthouse
Models/Misc/generic-lighthouse.xml 5,148
Obelisks
  • man_made=obelisk
Models/Misc/generic_monument_01.ac 57
Power pylons
  • power=tower
Models/Power/generic_pylon_*.ac 2,760,804
Tanks
  • man_made=fuel_storage_tank
  • man_made=storage_tank
  • man_made=tank
Models/Industrial/GenericStorageTank*m.xml 46,993
Survey points
  • man_made=survey_point
Models/Misc/trigpoint.xml 271,676
Water towers
  • man_made=water_tower
Models/Industrial/water-tower.ac 17,132
Windturbines
  • generator:source=wind
  • power_source=wind
Models/Power/windturbine.xml 79,636
  • manufacturer=Vestas
  • manufacturer:type=V 80
Models/Power/vestas-v80-sea.xml 39

http://taginfo.openstreetmap.org/keys/ lists all tags.

Questions/problems

  • Should we remove shared objects that are currently in the database, if they are not present in OpenStreetMap?
  • In order to prevent us from adding duplicates, a certain radius around the (OSM) object location should be checked for the presence of objects. What would be a good radius?

Import process

  1. ...
  2. Check for duplicates.
  3. ...
  4. Run pylon-headings.pl to properly allign power pylons with their cables.
  5. ...
  6. Push to object database