From: Bborie Park Date: Fri, 14 Dec 2012 20:27:30 +0000 (+0000) Subject: Added support for padded edge tiles to ST_IsCoverageTile() X-Git-Tag: 2.1.0beta2~292 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bc906c6c6d9f2ede64bdaae68c251393f4dd8566;p=postgis Added support for padded edge tiles to ST_IsCoverageTile() git-svn-id: http://svn.osgeo.org/postgis/trunk@10839 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/raster/rt_pg/rtpostgis.sql.in.c b/raster/rt_pg/rtpostgis.sql.in.c index dfd9cfdb1..42df2cc34 100644 --- a/raster/rt_pg/rtpostgis.sql.in.c +++ b/raster/rt_pg/rtpostgis.sql.in.c @@ -5305,6 +5305,16 @@ CREATE OR REPLACE FUNCTION st_iscoveragetile(rast raster, coverage raster, tilew END IF; END IF; + -- edge tile + + -- edge tile may have same size as inner tile + IF + (_rastmeta.width = tilewidth) AND + (_rastmeta.height = tileheight) + THEN + RETURN TRUE; + END IF; + -- get edge tile width and height edge[0] := _covmeta.width - ((max[0] - 1) * tilewidth); edge[1] := _covmeta.height - ((max[1] - 1) * tileheight);