Digitization of poligons. Part 2: extracting boundaries and creating polygons