Made gdal structure dynamic in to_pg_raster