GetDEMNeighbor()
Summary
Returns the ID of a neighbor of a cell in a DEM.
Changes
From version 5.0 works on Grid CDF area layers.
Syntax
neighbor_id = GetDEMNeighbor(int cell_ id, string dir)
| Argument | Contents |
|---|---|
| cell_ id | ID of a cell in a DEM |
| dir | Direction of the neighbor: "North", "South", "East", or "West" |
Returns
An integer ID of the neighboring cell.
Notes
-
0 is returned when a layer boundary is encountered.
-
Works on a Grid CDF area layer.
See Also
| Function | Summary |
|---|---|
| GetDEMInfo() | Collects summary information about a Digital Elevation Model file |
| GetNeighbors() | Gets the neighbors of an area feature |
| ImportDEM() | Imports features from Digital Elevation Model files |