From 380cc1de6ef88a1f64dca1c36ac62d8d2b8cdece Mon Sep 17 00:00:00 2001 From: Regina Obe Date: Tue, 1 Nov 2011 17:11:54 +0000 Subject: [PATCH] document ST_SameAlignment git-svn-id: http://svn.osgeo.org/postgis/trunk@8075 b70326c6-7e19-0410-871a-916f4a2858ee --- doc/reference_raster.xml | 115 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 115 insertions(+) diff --git a/doc/reference_raster.xml b/doc/reference_raster.xml index d8e47e368..cb7e23640 100644 --- a/doc/reference_raster.xml +++ b/doc/reference_raster.xml @@ -5977,5 +5977,120 @@ WHERE A.rid =2 ; + + + + ST_SameAlignment + + Returns true if rasters have same skew,scale, spatial ref and false if they don't with notice detailing issue. + + + + + + boolean ST_SameAlignment + + raster + rastA + + + raster + rastB + + + + + boolean ST_SameAlignment + + double precision + ulx1 + + + double precision + uly1 + + + double precision + scalex1 + + + double precision + scaley1 + + + double precision + skewx1 + + + double precision + skewy1 + + + double precision + ulx2 + + + double precision + uly2 + + + double precision + scalex2 + + + double precision + scaley2 + + + double precision + skewx2 + + + double precision + skewy2 + + + + + + + Description + + Returns true if the raster have same skew scale etc. Returns false if they don't and a NOTICE detailing the alignment issue. + + Availability: 2.0.0 + + + + Examples: Rasters + + SELECT ST_SameAlignment( + ST_MakeEmptyRaster(1, 1, 0, 0, 1, 1, 0, 0), + ST_MakeEmptyRaster(1, 1, 0, 0, 1, 1, 0, 0) +) as sm; + +sm +---- +t + + +SELECT ST_SameAlignment(A.rast,b.rast) + FROM dummy_rast AS A CROSS JOIN dummy_rast AS B; + + NOTICE: The two rasters provided have different SRIDs +NOTICE: The two rasters provided have different SRIDs + st_samealignment +------------------ + t + f + f + f + + + + See Also + , + + -- 2.49.0