temp fix for pickling postgis data - to be tested