Show / Hide Table of Contents

Method ApplyElevationAsync

ApplyElevationAsync(Geometry, CancellationToken)

Gets and applies an elevation (in meters) for each point in the input geometry.

Declaration
public Task<Geometry> ApplyElevationAsync(Geometry geometry, CancellationToken cancellationToken = default)
Parameters
Type Name Description
Geometry geometry

The geometry that contains the points to fetch the elevations for.

CancellationToken cancellationToken

An optional cancellation token that can be used to cancel the operation.

Returns
Type Description
Task<Geometry>

An asynchronous task containing a Geometry with updated Z values for every vertex.

Remarks

The method returns a copy of the input geometry, but with updated elevation (Z) values for all points. Each point’s elevation is taken from the highest‑detail data available in the provided elevation sources. Because of this, the returned geometry may contain elevation values with a higher resolution than what is currently rendered on the screen.

This method accepts all geometry types except Envelope. Passing an Envelope geometry throws an exception.

If the elevation for a vertex cannot be determined, its Z value in the returned geometry is set to NaN.

Applies to

Platforms and versions
TargetVersions
.NET300
.NET Windows300
.NET Android300
.NET iOS300
In this article
Provide feedback
Back to top Copyright © 2025 Esri.