{"version":"1.0","type":"rich","title":"A temporary fix to raster2pgsql.py to work with current PostGIS HEAD","description":"A Python script loads GDAL raster datasets and converts them into hex-encoded WKB streams for insertion into a PostGIS raster table. It uses the `osgeo.gdal` and `osgeo.osr` bindings to read geospatial data, with `optparse` handling command-line flags for SRID assignment, band extraction, block-size tiling, and overview table creation. The output is a SQL-ready binary representation suitable for PostGIS’s current raster format.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-1491677?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}