extract line intersection code