added adapter that works with postgis