Skip to content

ElevationProfile

Namespace: ThinkGeo.Core

The elevations along a line, evenly spaced on the ground - what a profile chart draws. Points carry distance-along as the X axis and elevation as the Y; the extremes and the average are computed here so a summary needs no loop. A GPU basemap's GetElevationProfileAsync samples one from its raster-dem tiles.

public sealed class ElevationProfile

Inheritance object → ElevationProfile

Properties

Points

Gets the samples in order along the line, the first at distance 0 and the last at ElevationProfile.LengthInMeters.

public IReadOnlyList<ElevationProfilePoint> Points { get; }

Property Value

IReadOnlyList<ElevationProfilePoint>

LengthInMeters

Gets the line's ground length in meters.

public double LengthInMeters { get; }

Property Value

double

MinElevationInMeters

Gets the lowest sampled elevation in meters, or null when nothing was sampled.

public Nullable<double> MinElevationInMeters { get; }

Property Value

Nullable<double>

MaxElevationInMeters

Gets the highest sampled elevation in meters, or null when nothing was sampled.

public Nullable<double> MaxElevationInMeters { get; }

Property Value

Nullable<double>

AverageElevationInMeters

Gets the mean of the sampled elevations in meters, or null when nothing was sampled.

public Nullable<double> AverageElevationInMeters { get; }

Property Value

Nullable<double>