Only do intersection calculation if last layer is polygon