A contour‐based topographic model for hydrological and ecological applications