apply Elevation
Gets and applies an elevation (in meters) for each point in the input geometry. 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 takes any geometry type as an input and the only exception is when the input geometry is an Envelope, in which case an exception is thrown.
If the elevation for a vertex cannot be determined, its Z value in the returned geometry is set to NaN.
The Geometry returned by this function will be of the same type as the input Geometry.
Return
A Result containing a Geometry containing updated Z values for every vertex.
Since
300.0.0
Parameters
The geometry that contains the points to fetch the elevations for.