]> granicus.if.org Git - postgis/commitdiff
git-svn-id: http://svn.osgeo.org/postgis/trunk@9339 b70326c6-7e19-0410-871a-916f4a2858ee
authorPierre Racine <Pierre.Racine@sbf.ulaval.ca>
Wed, 29 Feb 2012 03:01:03 +0000 (03:01 +0000)
committerPierre Racine <Pierre.Racine@sbf.ulaval.ca>
Wed, 29 Feb 2012 03:01:03 +0000 (03:01 +0000)
doc/reference_raster.xml
raster/rt_pg/rtpostgis.sql.in.c

index 9580ab76bd1701df3351ca7afe22dca3268cdb9f..2216bc3fe7494161a4c92548c7d8b59b5bd8fdac 100644 (file)
@@ -1368,10 +1368,12 @@ WHERE rid=35;
                        <refsection>
                                <title>Description</title>
                                <para>Returns an empty raster (having no band) of given dimensions (width &amp; height) and georeferenced in spatial (or world) coordinates with upper left X (upperleftx), upper left Y (upperlefty), 
-                               pixel size and rotation (scalex, scaley, skewx &amp; skewy) and reference system (srid). 
-                               The last version use a single parameter to specify the pixel size (pixelsize). 
-                               In this case scalex and scaley are set to this parameter and skewx and skewy are set to 0. 
-                               If an existing raster is passed in, it returns a new raster with the same meta data settings (without the bands). </para>
+                               pixel size and rotation (scalex, scaley, skewx &amp; skewy) and reference system (srid).</para>
+                               
+                               <para>The last version use a single parameter to specify the pixel size (pixelsize). scalex is set to this argument and scaley is set to the negative value of this argument. skewx and skewy are set to 0. </para>
+                               
+                               <para>If an existing raster is passed in, it returns a new raster with the same meta data settings (without the bands). </para>
+                               
                                <para>If no srid is specified it defaults to 0. After you create an empty raster you probably want to add bands to it and maybe edit it. Refer to <xref linkend="RT_ST_AddBand" /> to define bands and <xref linkend="RT_ST_SetValue" /> to set initial pixel values.</para>
                                
                                </refsection>
index b1adfd59f86db0d3d43359d7eb70c795d043c40f..6721e29dc383d2f40c6f232c11c5accb7962b4ab 100644 (file)
@@ -196,7 +196,7 @@ CREATE OR REPLACE FUNCTION st_makeemptyraster(width int, height int, upperleftx
 
 CREATE OR REPLACE FUNCTION st_makeemptyraster(width int, height int, upperleftx float8, upperlefty float8, pixelsize float8)
     RETURNS raster
-    AS $$ SELECT st_makeemptyraster($1, $2, $3, $4, $5, $5, 0, 0, ST_SRID('POINT(0 0)'::geometry)) $$
+    AS $$ SELECT st_makeemptyraster($1, $2, $3, $4, $5, -($5), 0, 0, ST_SRID('POINT(0 0)'::geometry)) $$
     LANGUAGE 'SQL' IMMUTABLE STRICT;
 
 CREATE OR REPLACE FUNCTION st_makeemptyraster(rast raster)