[GeoLib] Corrected implementation of check if Polyline is in Polygon.

The check if a polyline is in a polygon is needed within the SimplePolygonTree.
it seems this function is not used in current ogs except for tests. Are you planning to use this function later?