Never mind, problem solved. An ST_WITHIN check kindly helped me figured it out. The problem was not that it was not a polygon. The problem was, one was inside the other one. Regards Jan