Browse samples per component: Terrain Analysis Engine
This sample demonstrates the terrain distance controller.
The terrain distance controller measures distance between points taking into account the terrain elevation in between. As such this will be an approximation of the distance to travel over land from start to end point.
The distance is influenced by the path taken between the points which can be either geodetic (shortest path on the ellipsoid) or of constant azimuth. Note that distance following a constant azimuth path may be smaller than when following a geodetic path, due to the terrain underneath.
Activate the terrain ruler in the toolbar and click a few times on the DTED data. A path is created and the distance along that path is shown computed. Adjust the measure mode settings to use a different distance calculation. Notice how the distance is bigger if “over terrain” is enabled. The parts of the measurement that are out of terrain bounds are shown as “Unknown”.
This sample demonstrates how to find extreme points inside a shape.
The sample allows you to find minimum and maximum points inside a selected area. A minimum/maximum point is defined to be the lowest or highest point in the surrounding area. This area is defined by a configurable separation distance.
To ensure that the peaks are more or less distinct, a separation height is needed. This height defines the minimum height difference which has to be bridged between two peaks.
Edit the selected polygon, adjust the extreme point settings and click the 'Compute' button. The found minimum (green) and maximum (red) points are added to the map and are shown inside the polygon.
This sample demonstrates how to visualize hypsometric computations on elevation data in a Lightspeed view. The computations can be applied to either the view's terrain or a specific elevation model.
The application generates all hypsometric calculations in advance, and puts them in separate layer. You can view separate the various hypsometric functions by toggling the visibility of their respective layers. The following functions are shown:
The panel in the upper right corner displays information about the hypsometric functions, relative to the position of the mouse.
This sample demonstrates how to produce line-of-sight computations, between two points and between a point and its environment.
The map shows DTED terrain data and points defined in a geodetic reference (black with white border) and in a grid reference (white with black border).
For point-to-point computations:
For line-of-sight coverage computations:
This sample demonstrates how to generate directional viewsheds for terrain and a shape model.
To calculate shadows for the sample terrain and city:
The sample creates a new composite viewshed based on the terrain and the city. It does so by extruding the given polygons to make them 3D. It also places the resulting extruded shapes above terrain. The sun is used as a direction: Conceptually the sun is at infinite height.
To visualize the viewshed it is wrapped in a multilevel raster. Visible (i.e. non-shadowed) portions of the terrain are transparent, while non-visible (i.e. shadowed) portions are gray. The raster creates tiles by sampling the composite viewshed at a height that is a combination of the height of the terrain plus the sampling height offset.
This sample demonstrates how to generate positional viewsheds for terrain and a shape model.
To calculate visibility for the sample terrain and city:
The sample creates a new composite viewshed based on the terrain and the city. It does so by extruding the given polygons to make them 3D. It also places the resulting extruded shapes above terrain. The observer is used as a position. Its height is given by the underlying terrain, plus the eye height offset.
To visualize the viewshed it is wrapped in a multilevel raster. Visible portions of the terrain are transparent, while non-visible portions are gray. The raster creates tiles by sampling the composite viewshed at a height that is a combination of the height of the terrain plus the sampling height offset.
The sample allows you to compute the visibility from a shape to a polyline or a polygon. You can do so by specifying the shapes using the drop-downs.
Edit the shapes and configure the desired visibility computation with the drop-downs. The visibility will be computed and added to the map.
This sample demonstrates the contour functionality of the Terrain Analysis Engine Component.
Select a type of contour. Two different contour types are available:
This sample demonstrates the terrain distance controller.
The terrain distance controller measures distance between points taking into account the terrain elevation in between. As such this will be an approximation of the distance to travel over land from start to end point.
The distance is influenced by the path taken between the points which can be either geodetic (shortest path on the ellipsoid) or of constant azimuth. Note that distance following a constant azimuth path may be smaller than when following a geodetic path, due to the terrain underneath.
Activate the terrain ruler and click a few times on the DTED data. A path is created and the distance along that path is shown computed. Adjust the measure mode settings to use a different distance calculation. Notice how the distance is bigger if “over terrain” is enabled. The parts of the measurement that are out of terrain bounds are shown as “Unknown”.
This sample demonstrates how to find extreme points inside a shape.
The sample allows you to find minimum and maximum points inside a selected area. A minimum/maximum point is defined to be the lowest or highest point in the surrounding area. This area is defined by a configurable separation distance.
To ensure that the peaks are more or less distinct, a separation height is needed. This height defines the minimum height difference which has to be bridged between two peaks.
Edit the selected polygon, adjust the extreme point settings and click the 'Compute' button. The found minimum (green) and maximum (red) points are added to the map and are shown inside the polygon.
Change the DTED level to control the resolution of the height data for the search algorithm.
This sample demonstrates how to visualize hypsometric computations on elevation data in a Lightspeed view. The computations can be applied to either the view's terrain or a specific elevation model.
Explore the various hypsometric functions and their input parameters (if applicable):
Open some additional elevation data (for example Data/Dted/Alps/dmed) and select the layer in the combo box in the "Hypsometry Data" panel. The hypsometric computations are now only applied to the selected layer instead.
This sample demonstrates how to set up Line-of-Sight (LOS) calculations in a Lightspeed view. The sample allows the user to edit an arcband that is used as input for LOS calculation.
The input shape is edited using the default shape editor. The resulting Line-of-Sight shape is visualized as a three-dimensional sheet using a TLspLOSCoveragePainter.
To edit the LOS calculation, first select the LOS input shape by clicking on it.
You can change the shape as follows:
Use the sliders in the parameters panel on the right to modify:
The style panel in the upper right side of the screen controls the following parameters:
All changes are applied immediately.
This sample demonstrates how to generate positional viewsheds for terrain and a shape model.
To calculate visibility for the sample terrain and city:
After some seconds, a viewshed is shown, indicating the hidden areas for the observer. It does not perfectly fit the buildings because of the sampling resolution.
The visibility result (in the form of a viewshed) produces a scalar field. The viewshed is visualized using the marching cubes algorithm. This algorithm extracts a polygonal mesh from a three-dimensional scalar field. The mesh represents the volumes that are invisible to the observer. The algorithm samples the scalar field at certain locations. The UI allows you to specify the resolution of this sampling with the "Viewshed step size"-setting.
The sample allows you to compute the visibility from a shape to a polyline or a polygon. You can do so by specifying the shapes using the drop-downs.
Edit the shapes and configure the desired visibility computation with the drop-downs. The visibility will be computed and added to the map.
Example TEA web service application using a custom service type.
The API documentation is integrated within the service.
After creating a TEA service in LuciadFusion Studio the documentation is available at
http://localhost:8081/samples/fusion/tea/{serviceName}/apidoc/index.html
.