gh2941: fix LinearEntity intersection problems
fold _do_point_distance into distance for Segment
Merge pull request #2944 from smichr/geom

gh2941: fix LinearEntity intersection problems