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


ITinAdvanced2.QueryNeighborsAndWeights Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (GeoDatabase)  

ITinAdvanced2.QueryNeighborsAndWeights Method

Returns natural neighbors and their weights corresponding to the query point.

[Visual Basic .NET]
Public Sub QueryNeighborsAndWeights ( _
    ByVal X As Double, _
    ByVal Y As Double, _
    ByVal pNeighbors As ILongArray, _
    ByVal pWeights As IDoubleArray _
)
[C#]
public void QueryNeighborsAndWeights (
    double X,
    double Y,
    ILongArray pNeighbors,
    IDoubleArray pWeights
);
[C++]
HRESULT QueryNeighborsAndWeights(
  double X,
  double Y,
  ILongArray* pNeighbors,
  IDoubleArray* pWeights
);
[C++]

Parameters X [in]
X is a parameter of type double Y [in]
Y is a parameter of type double pNeighbors
pNeighbors is a parameter of type ILongArray* pWeights
pWeights is a parameter of type IDoubleArray*

Product Availability

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

Description

Returns the natural neighbor indices and their normalized weights for the given query point. The weights are based on area-stealing, or Sibson, interpolation. There is a one to one correspondence between the index and weight entries placed in the two arrays.

For valid results the TIN should have been constructed using only mass points. It must be Delaunay and have a convex interpolation zone. Breaklines are not taken into consideration.

If the query point is incident to a node only that node's index will be returned along with a weight of 1.0.

Zero neighbors will be reported if a query point falls outside the TIN's interpolation zone.

If a super node is discovered to be a neighbor it will be excluded from consideration. It will not be reported as a neighbor or be included in determining weights.

Both objects implementing the array functionality must be instantiated before being used with this member.

See Also

ITinAdvanced2 Interface