Added quick script to remove segments that won't produce valid WKT