A temporary fix to raster2pgsql.py to work with current PostGIS HEAD
✓ Published0🌍 Public
Aandrewxhill
Last edited Dec 17, 2011
Created on Dec 17, 2011
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.
AI-generated description