Parameters
- geometry
- The geometry to be interpolated. It must be a point, multipoint, polyline or polygon.
Return Value
True if the shape can be interpolated. False otherwise.True if checks pass. False otherwise.
var tinLayer = MapView.Active.Map.GetLayersAsFlattenedList().OfType<TinLayer>().FirstOrDefault(); await QueuedTask.Run(() => { Geometry output = null; // interpolate z values for a geometry if (tinLayer.CanInterpolateShape(polyline)) output = tinLayer.InterpolateShape(polyline, SurfaceInterpolationMethod.NaturalNeighbor); if (output != null) { // process the output } // densify the shape before interpolating if (tinLayer.CanInterpolateShape(polygon)) output = tinLayer.InterpolateShape(polygon, SurfaceInterpolationMethod.Linear, 0.01, 0); if (output != null) { // process the output } });
Target Platforms: Windows 11, Windows 10