A method for processing well data from a wellbore performed by a circuit, the method comprising the steps of: - receiving initial well data, the initial well data comprising at least one lithological segment (210-211, 224-225), each segment representing a lithological layer each comprising a line of inclination or a surface of inclination; - transforming (604, 605) the initial well data into restored well data; and - supplying restored well data; - determining a restored geological structure of a soil to be prospected from said restored well data, in which the transformation of the initial well data comprises: - for each lithological segment, projection of said lithological segment onto a normal to the line of inclination or to the surface of inclination at an intersection between the lithological segment and the line of inclination or the surface of inclination to form a projected lithological segment; - concatenation of the at least one projected lithological segment to form restored well data; characterized in that the transformation further comprises: - for each lithological segment, production of an affine proportional transformation of the lithological segment or of the projected lithological segment, and in which said segment represents a lithological layer comprising at least one facies, and in which the affine proportional transformation is a function of a decompaction rate associated with said at least one facies. the method comprising the steps of: - receiving initial well data, the initial well data comprising at least one lithological segment (210-211, 224-225), each segment representing a lithological layer each comprising a line of inclination or a surface of inclination; - transforming (604, 605) the initial well data into restored well data; and - supplying restored well data; - determining a restored geological structure of a soil to be prospected from said restored well data, - receiving initial well data, the initial well data comprising at least one lithological segment (210-211, 224-225), each segment representing a lithological layer each comprising a line of inclination or a surface of inclination; - transforming (604, 605) the initial well data into restored well data; and - supplying restored well data; - determining a restored geological structure of a soil to be prospected from said restored well data, in which the transformation of the initial well data comprises: - for each lithological segment, projection of said lithological segment onto a normal to the line of inclination or to the surface of inclination at an intersection between the lithological segment and the line of inclination or the surface of inclination to form a projected lithological segment; - concatenation of the at least one projected lithological segment to form restored well data; - for each lithological segment, projection of said lithological segment onto a normal to the line of inclination or to the surface of inclination at an intersection between the lithological segment and the line of inclination or the surface of inclination to form a projected lithological segment; - concatenation of the at least one projected lithological segment to form restored well data; characterized in that the transformation further comprises: - for each lithological segment, production of an affine proportional transformation of the lithological segment or of the projected lithological segment, - for each lithological segment, production of an affine proportional transformation of the lithological segment or of the projected lithological segment,