LPIS: polygon clipping improvements