pattern for removing non-matching geoms from layer