This document is archived and information here might be outdated.  Recommended version.

ISurface.InterpolateShapeVertices Method (ArcObjects .NET 10.7 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IS > ISurface Interface > ISurface.InterpolateShapeVertices Method
ArcGIS Developer Help

ISurface.InterpolateShapeVertices Method

Interpolates z values for a defined geometric shape at its vertices only.

[Visual Basic .NET]
Public Sub InterpolateShapeVertices ( _
    ByVal pShape As IGeometry, _
    ByRef ppOutShape As IGeometry _
public void InterpolateShapeVertices (
    IGeometry pShape,
    ref IGeometry ppOutShape
HRESULT InterpolateShapeVertices(
  IGeometry* pShape,
  IGeometry** ppOutShape
pShape [in]

pShape is a parameter of type IGeometry* ppOutShape [out]
ppOutShape is a parameter of type IGeometry**

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Takes an input polyline or polygon, interpolates heights for its vertices from the surface, and outputs the result as 3D geometry. A NULL pointer ('Nothing' in VB) is returned if any portion of the input feature 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.


See Also

ISurface Interface