]> granicus.if.org Git - postgis/commitdiff
Added apply_grid wrappers.
authorSandro Santilli <strk@keybit.net>
Thu, 6 Jan 2005 09:08:14 +0000 (09:08 +0000)
committerSandro Santilli <strk@keybit.net>
Thu, 6 Jan 2005 09:08:14 +0000 (09:08 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@1228 b70326c6-7e19-0410-871a-916f4a2858ee

doc/postgis.xml
lwgeom/lwpostgis.sql.in

index 13ac3ec824e41c9f37b1784eb3106e608f0e89e4..06e2dd6bf7cff7c363b33f08f9b543b06002431b 100644 (file)
@@ -4058,6 +4058,8 @@ FROM geometry_table;</literallayout>
 
         <varlistentry>
           <term>Apply_Grid(geometry, originX, originY, sizeX, sizeY)</term>
+          <term>Apply_Grid(geometry, sizeX, sizeY)</term>
+          <term>Apply_Grid(geometry, size)</term>
 
           <listitem>
             <para>Apply the grid defined by its origin and cell size to
index 8cdfd097f353ca4a328eaecf7d90d09bede7895d..3017620808ca39b5b251ff73d3c0c39276e06ae8 100644 (file)
@@ -3155,6 +3155,16 @@ CREATEFUNCTION apply_grid(geometry, float8, float8, float8, float8)
    AS '@MODULE_FILENAME@', 'LWGEOM_apply_grid'
    LANGUAGE 'C' WITH (isstrict,iscachable);
 
+CREATEFUNCTION apply_grid(geometry, float8, float8)
+   RETURNS geometry
+   AS 'SELECT apply_grid($1, 0, 0, $2, $3)'
+   LANGUAGE 'SQL' WITH (isstrict,iscachable);
+
+CREATEFUNCTION apply_grid(geometry, float8)
+   RETURNS geometry
+   AS 'SELECT apply_grid($1, 0, 0, $2, $2)'
+   LANGUAGE 'SQL' WITH (isstrict,iscachable);
+
 CREATEFUNCTION line_interpolate_point(geometry, float8)
    RETURNS geometry
    AS '@MODULE_FILENAME@', 'LWGEOM_line_interpolate_point'