Convert core types to postgis geometries.