Abstract. We parametrized the total structure of the Galaxy in cylindrical coordinates by radial and vertical exponentials up to z ∼ 10 kpc, covering thin disc, thick disc, and the inner spheroid. However, we let the scaleheight and scalelength to be a continuous function of distance from the Galactic plane. The standard deviations for the differences between the space densities estimated by means of the newly defined scaleheight and scalelength and the observed space densities for three absolute magnitude intervals, 5 < M (g) ≤ 6, 6 < M (g) ≤ 7, and 7 < M (g) ≤ 8, for the fields SA 114, ELAIS, and #0952+5245 are rather small. The uncertainties for the scaleheight are also small, indicating that this parameter is very sensitive to the distance from the Galactic plane, whereas those for the scalelength are larger.