## IDW

**Syntax**

IDW(string InPointsPath, int InValueFieldIndex, string OutGridPath, double CellSize,

double Power, MapWinGeoProc.Interpolation.IDWNeighborhoodType NeighborhoodType,

int NeighborhoodCount, double NeighborhoodDistance, MapWinGIS.ICallback callback)

**Summary**

Inverse Distance Weighting Interpolation

**Parameters**

InPointsPath |
Input point shapefile path to interpolate |

InValueFieldIndex |
Input field index where interpolation value is stored |

OutGridPath |
Output grid path where interpolation is stored |

CellSize |
Cell Size for output grid. Default lower of points extent height or width divided by 250 |

Power |
Power variable for IDW algorithm. 0 lt p lt 1 will give sharp changes. >1 will give smoother. Default 2. |

NeighborhoodType |
Variable is a variable number of nearest points. Fixed is all points in a fixed distance |

NeighborhoodCount |
Variable Count is either number of nearest points to use. Fixed Count is minimum points needed to find valid interpolation |

NeighborhoodDistance |
Variable Distance is a maximum distance of nearest points. Fixed Distance is distance to use to select points |

callback |
A callback for progress information |

Visual Basic Net 2005 Example Implementation
Code

Visual C# 2005 Example Implementation
Code