Parameters
- geometry
- The geometry to be interpolated. It must be a point, multipoint, polyline or polygon.
Return Value
A ArcGIS.Core.Geometry.Geometry with surface elevation z values.
Exception | Description |
---|---|
System.ArgumentNullException | geometry cannot be null. |
System.ArgumentException | The set of parameters is invalid for this surface. See CanInterpolateShape. |
MappingException | An exception occurred within the InterpolateShape calculation. |
ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run. |
InterpolateShape 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.
See also InterpolateShape(Geometry,Double) if you wish to specify a specific value for densification of the geometry before interpolation occurs. This method uses the default value for raster based surfaces which is equal to the cellsize.
Target Platforms: Windows 11, Windows 10