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


ITinAdvanced2.QueryNaturalNeighborIndices Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (GeoDatabase)  

ITinAdvanced2.QueryNaturalNeighborIndices Method

Returns all Natural Neighbors corresponding to the query point.

[Visual Basic .NET]
Public Sub QueryNaturalNeighborIndices ( _
    ByVal pPoint As IPoint, _
    ByVal pNodes As ILongArray _
)
[C#]
public void QueryNaturalNeighborIndices (
    IPoint pPoint,
    ILongArray pNodes
);
[C++]
HRESULT QueryNaturalNeighborIndices(
  IPoint* pPoint,
  ILongArray* pNodes
);
[C++]

Parameters pPoint [in]
pPoint is a parameter of type IPoint pNodes
pNodes is a parameter of type ILongArray

Product Availability

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

Description

Returns the indices of the nodes that are natural neighbors of the query point. This set represents those the point would connect to if inserted into the triangulation.

If the query point is coincident with an existing node, that nodes neighbors will be returned.

An empty set is returned if the query point falls outside the triangulation.

The passed LongArray must already be instantiated.

The TIN must be Delaunay.

See Also

ITinAdvanced2 Interface