I have building polygonZM shape file, as per customer requirements need to find and fix below topological errors.
- Collinear errors (if any building edge have more than 2 vertex )

- Missing vertex at every intersection of building

I would like to find these errors programatically and having more than 10 lak polygons hence, requesting an efficient algorithm either .net or python.
Thanks and Regards,
Chandra Sekhar Guda.