Enhance spatial wrapper
fix unit test
fix sql wrapper