Spatial data for teradata and postgresql #631