TerraGear Documentation: Difference between revisions
No edit summary |
m (Cleanup to wiki standards) |
||
Line 1: | Line 1: | ||
There has been a lot of questions relating to scenery generation tools. This page is an attempt to document each of the tools I use. I will also document the design, and what each tool is actually doing. | |||
My hope is to attract more developers to work on the tools to make it easier to create better scenery for [[FlightGear]]. | |||
My hope is to attract more developers to work on the tools to make it easier to create better scenery for FlightGear. | |||
= Toolchain = | == Toolchain == | ||
=== hgtchop === | |||
== hgtchop == | hgtchop is responsible for cropping height data files into SimGear buckets (or tiles). Most height data format is published in fairly large data files that cover 1 square degree. | ||
hgtchop is responsible for cropping height data files into SimGear buckets (or tiles). | |||
==== command options ==== | |||
hgtchop <resolution> <hgt_file> <work_dir> | hgtchop <resolution> <hgt_file> <work_dir> | ||
=== description === | ==== description ==== | ||
When later tools need to query elevation data, they do so expecting the data to be located in a standard SimGear folder structure as follows: | |||
10 deg x 10 deg folder | 10 deg x 10 deg folder | ||
:1 degree by 1 degree folder | :1 degree by 1 degree folder | ||
::bucket number.xxx | ::bucket number.xxx | ||
hgtchop will create this directory structure in the work folder, and create sgbucket.arr.gz files within. | hgtchop will create this directory structure in the work folder, and create sgbucket.arr.gz files within. | ||
=== resolution === | ==== resolution ==== | ||
Each file created contains ALL of the data points for the simgear tile. For SRTM-1 data, the grid is TODO For SRTM-3 data, the grid is TODO. The resolution parameter tells hgtcop the distance between sampled points. | |||
Each file created contains ALL of the data points for the simgear tile. | |||
=== | ==== hgt_file ==== | ||
The source file. Usually, the source files are 1 degree by 1 degree, and has enough data to create 32 simgear buckets. | |||
==== work_dir ==== | |||
This is where hgt-chop will generated the elevation directory tree described above. | This is where hgt-chop will generated the elevation directory tree described above. | ||
== hgtfit = | === hgtfit === | ||
== | === ogr-decode === | ||
=== | === genapts / genapts850 === | ||
==== design ==== | |||
:Step 1 : Parse | :Step 1 : Parse | ||
Line 54: | Line 45: | ||
:Step 5 : Output | :Step 5 : Output | ||
== fgfs-construct == | === fgfs-construct === | ||
= Related content = | == Related content == | ||
* [[Using Terragear]] | * [[Using Terragear]] | ||
* [[TerraGear CORINE]] | * [[TerraGear CORINE]] |
Revision as of 10:29, 6 June 2012
There has been a lot of questions relating to scenery generation tools. This page is an attempt to document each of the tools I use. I will also document the design, and what each tool is actually doing.
My hope is to attract more developers to work on the tools to make it easier to create better scenery for FlightGear.
Toolchain
hgtchop
hgtchop is responsible for cropping height data files into SimGear buckets (or tiles). Most height data format is published in fairly large data files that cover 1 square degree.
command options
hgtchop <resolution> <hgt_file> <work_dir>
description
When later tools need to query elevation data, they do so expecting the data to be located in a standard SimGear folder structure as follows:
10 deg x 10 deg folder
- 1 degree by 1 degree folder
- bucket number.xxx
hgtchop will create this directory structure in the work folder, and create sgbucket.arr.gz files within.
resolution
Each file created contains ALL of the data points for the simgear tile. For SRTM-1 data, the grid is TODO For SRTM-3 data, the grid is TODO. The resolution parameter tells hgtcop the distance between sampled points.
hgt_file
The source file. Usually, the source files are 1 degree by 1 degree, and has enough data to create 32 simgear buckets.
work_dir
This is where hgt-chop will generated the elevation directory tree described above.
hgtfit
ogr-decode
genapts / genapts850
design
- Step 1 : Parse
- Step 2 : Clip
- Step 3 : Clean
- Step 4 : Elevation
- Step 5 : Output
fgfs-construct
Related content
|
|