← Back to carmenta.com
Carmenta Engine SDK Documentation
×

TerrainMobilityOperator.DesiredResolution Property

Gets or sets the desired raster resolution for the computation.

Thread safety: This property is not thread-safe. Show

Syntax

C#
public AttributeVariable< System.Double > DesiredResolution { get; set; }

Property Value

Type: An attribute variable that returns a value of type System.Double.
Default: 25.0
A desired resolution in meters that can affect in which resolution the computation is performed.

Remarks

When the operator requests data from ElevationInput, the value of DesiredResolution will override the information about the View resolution. So if alternative resolutions are available from this input, the chosen resolution will be adapted to the DesiredResolution instead of to the View resolution. (However, "adapted to" does not mean "exactly equal to".)

The raster resolution received from ElevationInput will then be used for the computation. Other raster-data input will be resampled to this resolution if necessary, and any vector data from RestrictedAreaInput will be rasterized to this resolution.

Sensible values are in the range 10 to 50 meters. Values less than 10 meters will not give more accurate results, since the computation assumes that the terrain vehicle is small compared to the resolution. Values larger than 50 meters will probably be too inaccurate.

The results can depend on the resolution in ways that are not quite predictable – slopes will be more or less smoothed and terrain types will be resampled differently – so we recommend that DesiredResolution is a constant value. However, it is possible to let it be an attribute variable that depends on the View.UpdateAttributes or on the attributes of the feature (if any) from TerrainRouteOperator.WaypointsInput or TerrainAccessOperator.PositionInput.

Platforms

Windows, Linux, Android

By accessing the information on this site you accept our terms and conditions and privacy policy.
This site uses cookies to enhance your experience and provide additional functionality.

Accept