setDepth method
Implementation
void setDepth(int position, int depthVal) {
if (_depth[position] != (-999)) {
if (_depth[position] != depthVal) {
throw TopologyException("assigned depths do not match ${getCoordinate()}");
}
}
_depth[position] = depthVal;
}