setFilter function

Set a filter to analyze the shape data