The paper presents a modified Moore’s neighbor contour tracing algorithm aimed at automating the extraction of contour lines from topographic maps, crucial for GIS applications. Compared to traditional methods, the proposed algorithm demonstrates improved efficiency and accuracy in tracing contours while simplifying the database creation process. Testing on several topographic maps shows its effectiveness, making it a valuable contribution to the field of digital mapping.