make sure that nearest_on_boundary preserves CRS and feature properties