ST_GeoReference — Restituisce i metadati di georeferenziazione in formato GDAL o ESRI, come si vede comunemente in un file world. L'impostazione predefinita è GDAL.
text ST_GeoReference(raster rast, text format=GDAL);
Restituisce i meta-dati di georeferenziazione, compreso il ritorno a capo, in formato GDAL o ESRI, come si vede comunemente in un file del mondo. L'impostazione predefinita è GDAL se non viene specificato il tipo. il tipo è la stringa 'GDAL' o 'ESRI'.
La differenza tra le rappresentazioni di formato è la seguente:
GDAL:
scalex skewy skewx scaley upperleftx upperlefty
ESRI:
scalex skewy skewx scaley upperleftx + scalex*0.5 upperlefty + scaley*0.5
SELECT
format,
replace(ST_GeoReference(rast, format), E'\n', ' | ') AS georef
FROM dummy_rast
CROSS JOIN (VALUES ('ESRI'), ('GDAL')) AS formats(format)
WHERE rid = 1;
format | georef --------+--------------------------------------------------------------------------- ESRI | 2.0000000000 | 0.0000000000 | 0.0000000000 | 3.0000000000 | 1.5000000000 | 2.0000000000 GDAL | 2.0000000000 | 0.0000000000 | 0.0000000000 | 3.0000000000 | 0.5000000000 | 0.5000000000 (2 rows)