return the new layer from the spatialCalc function