In the context of urban planning, it is very important to estimate the nature of the roof of every building and, in particular, to make the difference between flat roofs and gable ones. This analysis is necessary in seismically active areas. Also in the assessment of renewable energy projects such solar energy, the shape of roofs must be accurately retrieved. In order to perform this task automatically on a large scale, aerial photos provide a useful solution. The goal of this research project is the development of algorithm for accurate mapping of two different roof types in digital aerial images. The algorithm proposed in this paper includes several components: pre-processing step to reduce illumination differences of individual roof surfaces, statistical moments calculation and color indexing. Roof models are created and saved as masks with feature specific descriptors. Masks are then used to mark areas that contain elements of the different roof types (e.g. gable and hip). The final orthophoto visualize an accurate position of each of the roof types. The result is evaluated using precision recall method.