First, create an account and / or login.In the following short tutorial, we are going to download data for Germany: If you want to use high resolution data and your region of interest is not covered, you can download it from USGS's EarthExplorer (to download the data, you will need an account though). It provides low-resolution data for the entire world, but high-resolution data is only available for Greenland, Northern Europe and parts of Southern Europe. There is also 15-arc-second resolution data, but using this should be out of question because there are 450 meters between the data points. If you have too slow internet to download high-resolution data for a big area (or too few disk space to store it, or your PC is too slow to process it), use the low resolution. 3-arc-second: Low resolution data, the spacing is about 90 meters.1-arc-second: High resolution data, the spacing between data points is about 30 meters.They exist in multiple resolutions, but the highest one should always be preferred: For this guide, the region of interest will be Germany, and the coordinates are defined as below:Ĭoordinates of the bounding box of GermanyĮlevation data is called DEM (Digital Elevation Model). Please note that all data that is downloaded as a ZIP archive has to be uncompressed before used.Īdditionally to the data listed below, you also need the coordinates of the upper-left and lower-right corner of a rectangle your region of interest fits into. For each data type there are many sources, but I am not going to list them all here, only one or two per data type. Additionally, if you have any airports in the area you want to build with TerraGear, you will need their apt.dat files (they contain information about runways, taxiways and parking's for every airport). To produce scenery usable by FlightGear, TerraGear needs some data like elevation (how far above (or below !) the sea a certain point of the terrain is), land-use (what a certain area is used for, for example forests, meadows, fields, towns, etc.), landmass (the borders of an island or a continent), and others. ~$ /path/to/some/directory/containing/terragear/executables/gdalchop Getting the data This guide also assumes that you have the directory containing the TerraGear executables listed in your PATH environment variables so that the TerraGear programs can be called like this output/: Ready to use FlightGear scenery - after you generated your scenery, add this folder to the list of additional scenery folders in the Addons tab of the FGLauncher.work/: Output of all TerraGear programs.shapefiles/: We will later slice the downloaded shapefiles because you want to only store data that you will be actually using.shapefiles_unsliced/: Put the shapefiles you download here.airports/: Put your apt.dat file(s) here.To not get confused about which file is what (and also to be able to follow this guide, as it is based on this structure), I recommend using following directory structure (these folders are assumed to be in your $HOME/tg directory, if they are located somewhere else, just substitute ~/tg with that path in all file paths you find on this page): Not a requirement, but a convenience are the Python scripts from the terragear-tools GitHub repository (work-in-progress, does not work yet). The program also needs the gdal-data package installed, else it may not work. On Ubuntu / Debian you can get it by installing the gdal-bin package. This is done with the utility program ogr2ogr. If you don't want to build scenery for the whole world, you have to slice and merge data files. You can make your system find them by setting some environment variables this is what the launcher script does). In the same repository you can also find a bash script that runs any of the TerraGear tools (some of the TerraGear programs need libraries that are included in the docker image, but your system will not know by default where to find them. It downloads any docker image to a local directory of your choice. I want to get the pre-compiled binaries for Linux, but I don't want to install docker just for thisįor non-docker users, I wrote a bash script which you can get from GitHub (you need curl and jq installed to run it). If you are a Linux user and can't get TerraGear to compile, you can get pre-compiled binaries from docker - there is a dedicated wiki article on this. There are several ways of getting TerraGear, most of them are described in the main TerraGear article. 4.3 Landuse, roads, railways, streams, lakes.1.1 I want to get the pre-compiled binaries for Linux, but I don't want to install docker just for this.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |