Virtual Planet Builder

From FlightGear wiki
Revision as of 19:02, 30 May 2020 by Stuart (talk | contribs) (Created page with "VirtualPlanetBuilder (VPB) is an OSG tool that generates native OSG data to represent terrain, usually by draping a GEO-TIFF over an elevation model. == Building VirtualPlane...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

VirtualPlanetBuilder (VPB) is an OSG tool that generates native OSG data to represent terrain, usually by draping a GEO-TIFF over an elevation model.

Building VirtualPlanetBuilder

The VPB project and code can be found here: https://github.com/openscenegraph/VirtualPlanetBuilder

If you've got an existing FlightGear build, there are some additional dependencies:

  • OSG
  • GDAL (https://gdal.org/)
    • ... which requires PROJ 6 or above (https://proj.org/)
      • ... which requires the sqlite3.11 or above development package (on linux - 'sudo apt-get install libsqlite3-dev')

Note that GDAL and PROJ do not use cmake, so you need to run "./configure" in the source directory before make

VPB is built using cmake e.g.

cmake -DOSG_DIR=/path/to/OSG/install /path/to/VPB/src

Getting Landcover Data

For CORINE data covering Europe, try here: https://land.copernicus.eu/pan-european/corine-land-cover/clc2018

Choose RASTER data, which will download a geo-referenced TIF image.

== Getting DEM data.