The paper is devoted to formalization of the topograpgic map elements description representing a relief of a watershed and talweg type with an aim of automatic generalization of the totality of elements according to the given digital topographic map. Solution of the problem is presented by a system of indeterminate equations which allow computing solutions