]> granicus.if.org Git - postgis/commitdiff
Removed hardcoded SRID of 0 and replaced with ST_SRID('Point(0 0)'::geometry)
authorBborie Park <bkpark at ucdavis.edu>
Tue, 15 Nov 2011 18:15:36 +0000 (18:15 +0000)
committerBborie Park <bkpark at ucdavis.edu>
Tue, 15 Nov 2011 18:15:36 +0000 (18:15 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8156 b70326c6-7e19-0410-871a-916f4a2858ee

raster/rt_pg/rtpostgis.sql.in.c

index 9bf9fe762be2910d2ec739b483c58f0b537cc90f..18fbe621667436d142ca609be631fa97d4dbb206 100644 (file)
@@ -179,12 +179,12 @@ 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, 0)'
+    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(width int, height int, upperleftx float8, upperlefty float8, scalex float8, scaley float8, skewx float8, skewy float8)
     RETURNS raster
-    AS 'select st_makeemptyraster($1, $2, $3, $4, $5, $6, $7, $8, 0)'
+    AS $$ SELECT st_makeemptyraster($1, $2, $3, $4, $5, $6, $7, $8, ST_Srid('POINT(0 0)'::geometry)) $$
     LANGUAGE 'SQL' IMMUTABLE STRICT;
 
 CREATE OR REPLACE FUNCTION st_makeemptyraster(rast raster)