From bc906c6c6d9f2ede64bdaae68c251393f4dd8566 Mon Sep 17 00:00:00 2001 From: Bborie Park Date: Fri, 14 Dec 2012 20:27:30 +0000 Subject: [PATCH] Added support for padded edge tiles to ST_IsCoverageTile() git-svn-id: http://svn.osgeo.org/postgis/trunk@10839 b70326c6-7e19-0410-871a-916f4a2858ee --- raster/rt_pg/rtpostgis.sql.in.c | 10 ++++++++++ 1 file changed, 10 insertions(+) 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); -- 2.50.1