]> granicus.if.org Git - postgis/commitdiff
fix typos
authorRegina Obe <lr@pcorp.us>
Wed, 14 Apr 2010 17:42:17 +0000 (17:42 +0000)
committerRegina Obe <lr@pcorp.us>
Wed, 14 Apr 2010 17:42:17 +0000 (17:42 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5551 b70326c6-7e19-0410-871a-916f4a2858ee

doc/reference_wktraster.xml

index 8b3c049b70c5281151c2cabf143c3e921d0b222a..b4d429bafbf79b472fc9391327fc1e9aa4eeb578 100644 (file)
@@ -1030,7 +1030,7 @@ FROM dummy_rast;
                                                you can get that by the following relationship.</para>
                                        <para>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))
                                        </para>
                                        <para>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.</para>
@@ -1079,7 +1079,7 @@ WHERE rid =  2 AND x &lt;= ST_Width(rast) AND y &lt;= 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