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


ISurface.InterpolateShapeVertices Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (GeoDatabase)  

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 _
)
[C#]
public void InterpolateShapeVertices (
    IGeometry pShape,
    ref IGeometry ppOutShape
);
[C++]
HRESULT InterpolateShapeVertices(
  IGeometry* pShape,
  IGeometry** ppOutShape
);
[C++]

Parameters 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.

Description

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.

Notes:

See Also

ISurface Interface