InterpolateShapeVertices Method (TinLayer)
Interpolates Z values for a geometric shape from the surface layer at it's vertices only.
This method must be called on the MCT. Use QueuedTask.Run.
Parameters
- multipart
- The multipart to be interpolated. It must be a polyline or polygon.
- interpolationMethod
- The method of interpolation. The default method of interpolation for TINs is SurfaceInterpolationMethod.Linear./
Return Value
A
ArcGIS.Core.Geometry.Geometry with surface elevation z values.
Interpolate Shape Verticies
var tinLayer = MapView.Active.Map.GetLayersAsFlattenedList().OfType<TinLayer>().FirstOrDefault();
await QueuedTask.Run(() =>
{
// interpolate z values at the geometry vertices only
Geometry output = tinLayer.InterpolateShapeVertices(polyline, SurfaceInterpolationMethod.NaturalNeighbor);
if (output != null)
{
// process the output
}
// or use a different interpolation method
output = tinLayer.InterpolateShapeVertices(polyline, SurfaceInterpolationMethod.Linear);
});
Target Platforms: Windows 11, Windows 10
ArcGIS Pro version: 3.4 or higher.