From: Regina Obe Date: Wed, 14 Apr 2010 17:42:17 +0000 (+0000) Subject: fix typos X-Git-Tag: 2.0.0alpha1~3029 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f3385546e53733445a44aae65d22c6a383ddcbcc;p=postgis fix typos git-svn-id: http://svn.osgeo.org/postgis/trunk@5551 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/doc/reference_wktraster.xml b/doc/reference_wktraster.xml index 8b3c049b7..b4d429baf 100644 --- a/doc/reference_wktraster.xml +++ b/doc/reference_wktraster.xml @@ -1030,7 +1030,7 @@ FROM dummy_rast; you can get that by the following relationship. Coordinate upper left ppoint of a row column is: - ST_SetSRID(ST_Point(ST_UpperLeftX(rast) + ST_PixelSizeX(rast)*columnx, ST_UpperRightY(rast) + ST_PixelSizeX(rast)*columny), ST_SRID(rast)) + ST_SetSRID(ST_Point(ST_UpperLeftX(rast) + ST_PixelSizeX(rast)*columnx, ST_UpperLeftY(rast) + ST_PixelSizeY(rast)*columny), ST_SRID(rast)) If you want the pixel box instead of the upper left point, you can use the ST_MakeEnvelope function and translate it every x,y. @@ -1079,7 +1079,7 @@ WHERE rid = 2 AND x <= ST_Width(rast) AND y <= ST_Height(rast); --- Get all values in bands 1,2,3 of each pixel same as above but returning the upper left point point of each pixel -- SELECT ST_AsText(ST_SetSRID( ST_Point(ST_UpperLeftX(rast) + ST_PixelSizeX(rast)*x, - ST_UpperLeftY(rast) + ST_PixelSizeX(rast)*y), + ST_UpperLeftY(rast) + ST_PixelSizeY(rast)*y), ST_SRID(rast))) As uplpt , ST_Value(rast, 1, x, y) As b1val, ST_Value(rast, 2, x, y) As b2val, ST_Value(rast, 3, x, y) As b3val