]> granicus.if.org Git - postgis/commitdiff
Additional tests for ST_Neighborhood()
authorBborie Park <bkpark at ucdavis.edu>
Mon, 24 Sep 2012 15:07:50 +0000 (15:07 +0000)
committerBborie Park <bkpark at ucdavis.edu>
Mon, 24 Sep 2012 15:07:50 +0000 (15:07 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@10322 b70326c6-7e19-0410-871a-916f4a2858ee

raster/test/regress/rt_neighborhood.sql
raster/test/regress/rt_neighborhood_expected

index 7d61eba5449f75b84778b2800559d94b23ad6225..f5da8cf9ae5ddf75c91ff7b19d03806372fbca93 100644 (file)
@@ -74,4 +74,11 @@ SELECT
        ST_Neighborhood(rast, 1, -9, 3, 3, 3, FALSE)
 FROM raster_neighborhood;
 
+SELECT 
+       ST_Neighborhood(rast, 1, 4, 4, 1, 1)
+FROM raster_neighborhood;
+SELECT 
+       ST_Neighborhood(rast, 1, 4, 4, 1, 2)
+FROM raster_neighborhood;
+
 DROP TABLE IF EXISTS raster_neighborhood;
index 49789beec016b4bf3d66b1863bcceef206f0fe17..61dc6fe4a0d9e9874544187706fc109ecd4e1140 100644 (file)
@@ -11,3 +11,5 @@ NOTICE:  Pixel has no neighbors for band at distance 1 x 1
 NOTICE:  Pixel has no neighbors for band at distance 1 x 1
 NOTICE:  Pixel has no neighbors for band at distance 3 x 3
 {{0,0,0,0,0,0,0},{0,0,0,0,0,0,0},{0,0,0,0,0,0,0},{0,0,0,0,0,0,0},{0,0,0,0,0,0,0},{0,0,0,0,0,0,0},{0,0,0,0,0,0,0}}
+{{1,1,NULL},{1,1,1},{NULL,1,1}}
+{{1,1,1,NULL,1},{1,1,1,1,1},{1,NULL,1,1,1}}