From: Regina Obe Date: Sat, 10 Apr 2010 01:42:40 +0000 (+0000) Subject: document st_setgeoreference X-Git-Tag: 2.0.0alpha1~3052 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=387b41eeab28bbc189a57e0fd1fc5cfadc0e761e;p=postgis document st_setgeoreference git-svn-id: http://svn.osgeo.org/postgis/trunk@5523 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/doc/reference_wktraster.xml b/doc/reference_wktraster.xml index 45f6a026a..fa13877d8 100644 --- a/doc/reference_wktraster.xml +++ b/doc/reference_wktraster.xml @@ -377,7 +377,7 @@ upperlefty + pixelsizey*0.5 See Also - , + , , @@ -835,6 +835,57 @@ UPDATE dummy_rast + + + ST_SetGeoReference + Set Georefence 6 georeference parameters in a single call. Numbers should be separated by white space. Accepts inputs in GDAL or ESRI format. Default is GDAL. + + + + + + raster ST_SetGeoReference + raster rast + text georefcoords + + + raster ST_SetGeoReference + raster rast + text georefcoords + text format + + + + + + Description + + Set Georefence 6 georeference parameters in a single call. Accepts inputs in 'GDAL' or 'ESRI' format. Default is GDAL. If 6 coordinates are not provided will return null. + Difference between format representations is as follows: + GDAL: +pixelsizex skewy skewx pixelsizey upperleftx upperlefty + ESRI: +pixelsizex skewy skewx pixelsizey upperleftx + pixelsizex*0.5 upperlefty + pixelsizey*0.5 + + + + Examples + + UPDATE dummy_rast SET rast = ST_SetGeoReference(rast, '2 0 0 3 0.5 0.5','GDAL') + WHERE rid=1; + +-- same coordinates set in 'ESRI' format +UPDATE dummy_rast SET rast = ST_SetGeoReference(rast, '2 0 0 3 1.5 2','ESRI') + WHERE rid=1; + + + + + See Also + , , , , + + + ST_SetPixelSize