ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / RasterLayer Class / InterpolateShapeVertices Method
The multipart to be interpolated. It must be a polyline or polygon.
Version

InterpolateShapeVertices Method (RasterLayer)
Interpolates Z values for a geometric shape from the raster surface layer at it's vertices only. Bilinear interpolation is used. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public Geometry InterpolateShapeVertices( 
   Multipart multipart
)

Parameters

multipart
The multipart to be interpolated. It must be a polyline or polygon.

Return Value

A ArcGIS.Core.Geometry.Geometry with surface elevation z values.
Exceptions
ExceptionDescription
multipart cannot be null.
An exception occurred within the InterpolateShapeVertices calculation.
This method or property must be called within the lambda passed to QueuedTask.Run.
Remarks
A null geometry is returned if any portion of the input falls outside the surface.

InterpolateShapeVertices will handle differences in spatial reference between the input shape and the surface. It will project (a copy of) the input geometry to match the surface for the sake of interpolation. It will then re-project the output geometry so it's the same as the input shape.

Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3.4 or higher.
See Also