AbstractHigh‐resolution grid digital elevation models (DEMs) are increasingly used by scientists and engineers to describe the current state and evolution of Earth and planetary topography. These data, however, are commonly altered by depression filling and grid coarsening procedures. Alteration of observed topographic data may cause significant information loss and limit the capabilities of models. This study shows that physically meaningful thalweg and ridge networks can be extracted automatically from any unaltered high‐resolution grid DEM, and that these networks can be used as bases for terrain partitioning. The slopeline network connecting grid cell centers is used to identify ridge points as those grid cell border midpoints and vertices that are not crossed by slopelines. From each ridge point, the average length of the two slopelines extending on the opposite slopes of the ridge until they rejoin is then computed. Based on these lengths, exorheic and endorheic basins are identified. Thalwegs of exorheic and endorheic basins are finally connected through spilling saddles to form the thalweg network. The related ridge network is identified based on neighboring relationships between ridge points. Thalweg and ridge networks are hierarchized using the well‐known concept of drainage area and an extended concept of dispersal area to inform terrain partitioning at any level of detail. Observed topographic features are well reproduced by extracted networks. The impact of preserving depressions over mountain areas is evaluated, and the benefits from unstructured terrain partitioning based on thalweg and ridge networks in the description of flood plain inundation are illustrated.