add geometry based spatial filter

add support for geometry based spatial filter