if a where clause if passed we now return the filtered data when where and geoms are present