An automated algortihm for simplification of the shape of the building.From the data set with a higher level of detail another data set that contains a lower level of detail can be derived. The algorithm was implemented in C++ with the use of ArcObjects libraries.