Difference between revisions of "Geog Heightfield Load"
|Line 1:||Line 1:|
'''Node Description and Purpose:'''<br />
'''Node Description and Purpose:'''<br />
Latest revision as of 02:40, 13 March 2019
Node Description and Purpose:
The Geog heightfield load node can load and georeference digital elevation map (DEM) files. It supports many formats and projections. Geog heightfield load nodes can be created using the "Heightfield (load DEM)" item in the Add Terrain button menu at the top of the Terrain node list.
You can see a list of the supported DEM formats supported by the node here. Terragen supports all of the formats which have "Yes" in the "Compiled by default" column of the table on that page. Most commonly used DEM formats are supported. Please note that not all of the supported formats have been tested, there are a lot of them and some are quite obscure.
You may notice that Terragen's TER terrain file format (.ter) is listed in the supported formats. However we recommend that you use a Heightfield Load node to load Terragen terrains, because that uses Terragen's native file loading.
DEMs often come as a collection of files. If you're not familiar with the DEM format you may need to experiment to see which file to open. A reasonable guess often seems to be to choose the largest file.
Georeferencing settings are only available in the Professional edition. However the correct size for the DEM will still be calculated based on georeferencing if needed. Without the georeferencing settings the position of the DEM will be controlled by the Heightfield Shader the Geog heightfield load node is attached to.
When you use a georeferenced DEM and the Georeference parameter is checked it will be placed at the correct position on the planet. However accuracy falls away as you move away from the origin of the planet, which corresponds to 0° latitude, 0° longitude or the Prime Meridian at the Equator. To ensure the best accuracy it's suggested that you move the planet origin to the area you're interested in. It's easy to do this. Let's say you've loaded a DEM and it's georeferenced. We'll move the planet origin so that it's at the southwest corner of the DEM. Follow these steps:
- Click the copy/paste button (clipboard icon) at right of the SW corner lat long parameter.
Choose "Copy coordinates" from the menu which pops up. This will copy the lat/long values from both text fields at the same time.
Open the parameter view for the Planet 01 node (the default planet object). You can find this in the Objects node list or double click on the node in the network view.
Paste the values into the planet's Lat long at apex parameter. You should use the copy/paste button for this again. Click the button and choose "Paste coordinates".
Those steps move the planet origin to the area you're interested and should ensure the best results.
The node allows you to replace NODATA values with a different value. NODATA values indicate areas in the DEM without valid data, which can often give the appearance of holes and similar in the terrain. Library previews for DEMs show NODATA areas drawn in red.
Node Type: Heightfield Operator
- Filename: This parameter lets you specify the DEM file to be loaded. Click the File button on the right to open a file chooser dialog.
- Replace NODATA values: If this is checked any NODATA values in the DEM will be replaced with the value specified in the replacement value field to the right.
- Set to Min Height: Pressing this button well set the NODATA numeric entry field to a value equal to the lowest height found in the imported DEM file.
- Update button: If you change the NODATA replacement value in the field to the left you will need to click this button to update the DEM with the new replacement values. The button is only available if Replace NODATA values is checked.
The following georeferencing settings are only available in the Professional edition:
- Georeference: If this is checked the heightfield will be georeferenced according to the settings in the fields below. If you uncheck this the position of the DEM will be controlled by the Heightfield Shader this node is attached to. The DEM will still be the correct size (according to values derived from the file).
Auto georeference from file: If this is checked the node tries to load georeferencing information for the DEM. This is on by default so when you a create a new node and choose a file the georeferencing information will be loaded automatically. If the node finds georeferencing information when it loads the file it also turns on the Georeference parameter. Please note that this also means that the georeferencing information will be read when the node loads as part of a project being opened. If you turn off the Georeference parameter you should also turn off Auto georeference from file or Georeference will be turned back on again when the project loads.
If you make changes to the georeferencing values this parameter is turned off.
NW corner lat long: This sets the latitude and longitude of the northwest corner of the heightfield.
NE corner lat long: This sets the latitude and longitude of the northeast corner of the heightfield.
SE corner lat long: This sets the latitude and longitude of the southeast corner of the heightfield.
SW corner lat long: This sets the latitude and longitude of the southwest corner of the heightfield.
- XY Size (metres): This param displays the size of the DEM in metres, as loaded from the file. If the size can't be derived from the DEM data directly it will be calculated based on georeferencing information. This parameter is read only, however you can select and copy values from it.
XY Size (points): This the number of points in each direction of the DEM. This parameter is read only, however you can select and copy values from it.
Height Range: This field displays height information about the heightfield. It shows the minimum height, maximum height and the height range. The height range is the minimum height subtracted from the maximum height.
DEM information field: This text field displays the following information about the DEM:
- Raster band units: This is the units used (metres, feet etc.) for the dimensions of the first raster band in the DEM.
NODATA value: This shows the value which is used for NODATA values in the DEM.
Coordinate system: This shows the coordinate system which is being used to georeference the DEM. The coordinate system is displayed using the OpenGIS Well Known Text format.
This parameter is read only, however you can select and copy values from it.
A heightmap or heightfield is an array of height values, usually in a grid which describe the height at specific points in a defined area. Heightfields are used to represent real-world and virtual terrain in a specific, easily converted format. Most heightfields can be represented as simple image data in grayscale, with black being minimum height and white being maximum height.
DEM stands for Digital Elevation Model (or Map). A DEM is similar to a heightfield. DEMs are normally generated from real world measurements of a planet's surface, for example Earth or Mars.
The Node List is a part of the Terragen interface that shows a list of nodes along the left side of the application window. The Node List generally shows only those nodes that are relevant to the current Layout (e.g. Terrain, Atmosphere). It sometimes includes buttons or other controls that are specific to a particular Layout as well. The Node List is hierarchical and each level is collapsible.
A parameter is an individual setting in a node parameter view which controls some aspect of the node.