| Maptitude GISDK Help |
Gets the neighbors of an area feature.
From version 5.0 works on Grid CDF area layers.
neighbors = GetNeighbors(int id, array options)
| Argument | Contents |
|---|---|
| id | The ID of the area |
No options are currently supported.
An array of integers with the IDs of the neighboring areas.
The current layer must be a topological area layer, which can be determined with GetDBTopology().
The neighbors may include the external area (ID=0).
Only edge (not node) neighbors are returned.
Works on a Grid CDF area layer.
| Error Type | Meaning |
|---|---|
| Error | id is invalid |
| Function | Summary |
|---|---|
| IsNeighbor() | Determines whether two areas are neighbors |
| GetDBTopology() | Determines whether a standard geographic file is topological |
| GetDEMNeighbor() | Returns the ID of a neighbor of a cell in a DEM |
| ©2025 Caliper Corporation | www.caliper.com |